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)
Wed, Nov 20, 9:06 AM
Unknown Object (File)
Tue, Nov 19, 11:19 PM
Unknown Object (File)
Tue, Nov 19, 1:57 PM
Unknown Object (File)
Thu, Oct 31, 10:32 AM
Unknown Object (File)
Thu, Oct 24, 11:15 PM
Unknown Object (File)
Oct 21 2024, 1:31 AM
Unknown Object (File)
Oct 19 2024, 8:46 PM
Unknown Object (File)
Oct 16 2024, 1:11 AM
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).