Site streams - changes to response codes and messages?


#1

Hi there,

Until recently (last night?) when you attempted to make a connection with several user ids that have all revoked their tokens, the response was a code of 400, with the response body of “No authorized followings found for your request”. This was a nice clear message that could be responded too appropriately.

It seems that this was changed, and now the response can be one of these two:

Code: 400 Body: Bad Request
Code: 404 Body: Not Found (I’ve checked the user’s haven’t removed themselves from Twitter)

I think 400’s also occur in some other circumstances, perhaps when your infrastructure is overloaded.

I’m not sure if this change was intentional? The previous messaging seemed more useful and more specific. Are you able to offer a more easily identifiable message for when a connection attempt is made with only users with revoked tokens?

Thanks,

Tim.


#2

I guess further to that, if it’s used in other scenarios, it would also be helpful if a 400 - Bad Request gave more detail about what was bad, so if it’s a problem with the client, it can be identified and resolved.


#3

Hi Tim,

Thanks for pointing this out – this was a bug with an underlying system SIte Streams depends on that was being turned up. The error messages you’re already use to should be coming back in the next ten to fifteen minutes.


#4

Hi Taylor,

It looks like the old familiar error messages are back. Thanks to your team.

I’d like to note one that’s a bit unusual - I referenced it above in the first message as suspecting it occurs when your infrastructure is overloaded, but now I have a copy of it again.

It’s a status code of 400 and body: “Must specify some user_id to use add_user or remove_user, e.g. user_id=1,2,3,4”

This happens occasionally when valid user ids are provided. i.e.
user_id=988230612,988230757,98823150,98823265,98823321,98823504,98823866,98823932,98823976,98823982,988240020,988240866,98824116,9882412,988242001,988245126,988250300,98825303,988253462,98825804,98826091,988261297,988262204,988264622,98826506,988265532,988265658,988266224,988266422,98826956,98826976,98827550,9882772,98827772,988279723,988279820,98828044,98828192,988283744,98828615,988288969,9882892,988290848,98829177,98829216,98829391,988296745,98829806,98829966,988303555,988304095,988309220,98830977,988313071,988313160,98831362,98831533,98831767,988318195,988318578,98831926,98832805,988329097,988329348,98833009,98833108,988331083,988332644,98834540,988346389,988347018,988347126,988347163,988349510,988350445,98835109,98835243,988352660,988353127,988353644,98835560,9883572,98835996,98836000,98836212,98836379,988365774,98836666,988368252,988368500,988368655,98837162,988372038,98837367,988374456,98837490,98837555,98837758,98838297,988383434