Fixes T5651. Sometime we'll send an object to the notification server for subscribers, which it will choke on. Use array_values() to make sure we're sending an array.
Details
Details
- Reviewers
joshuaspence - Maniphest Tasks
- T5651: "400 Bad Request" errors from Aphlict server
- Commits
- Restricted Diffusion Commit
rP6bf4ec97d563: Fix HTTP 400 from notification server for JSON subscription objects
With (object) instead, got a consistent error ("no .filter method on object"). With array_values(), no error.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Branch
- narray
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 1745 Build 1746: [Placeholder Plan] Wait for 30 Seconds
Event Timeline
Comment Actions
- Also log 400's.
- Tested and confirmed it's actually the issue and works. Specifically, I used (object) to reliably reproduce the error:
[Thu Jul 17 2014 14:02:23 GMT-0700 (PDT)] <127.0.0.1> Bad Request! TypeError: Object [object Object] has no method 'filter'