Page MenuHomePhabricator

Fix HTTP 400 from notification server for JSON subscription objects
ClosedPublic

Authored by epriestley on Jul 17 2014, 2:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 7:03 AM
Unknown Object (File)
Tue, Dec 10, 6:48 PM
Unknown Object (File)
Sat, Dec 7, 11:44 AM
Unknown Object (File)
Fri, Nov 29, 12:16 PM
Unknown Object (File)
Tue, Nov 26, 3:50 PM
Unknown Object (File)
Mon, Nov 25, 8:18 PM
Unknown Object (File)
Mon, Nov 25, 8:17 PM
Unknown Object (File)
Sun, Nov 24, 8:32 PM
Subscribers

Details

Summary

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.

Test Plan

With (object) instead, got a consistent error ("no .filter method on object"). With array_values(), no error.

Diff Detail

Repository
rP Phabricator
Branch
narray
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1741
Build 1742: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Possible fix for HTTP 400 from notification server.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: joshuaspence.
  • 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'
joshuaspence edited edge metadata.

Yeah okay... this makes sense.

This revision is now accepted and ready to land.Jul 17 2014, 9:41 PM

(maybe clean up the diff title and summary before landing this)

epriestley retitled this revision from Possible fix for HTTP 400 from notification server to Fix HTTP 400 from notification server for JSON subscription objects.Jul 17 2014, 9:46 PM
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley edited edge metadata.
epriestley updated this revision to Diff 23917.

Closed by commit rP6bf4ec97d563 (authored by @epriestley).