Getting 422s when attempting to follow channel

In the last couple of weeks, we’ve been getting hundreds of these errors. Any way we can get some insight in to what’s going wrong here? I’m not seeing any pattern. Here’s an example of one of them:

RuntimeError: {:body=>#<HTTParty::Response:0x7fa7c0c91ae8 parsed_response={“error”=>“Unprocessable Entity”, “status”=>422, “message”=>“”}, @response=#<Net::HTTPUnprocessableEntity 422 Unprocessable Entity readbody=true>, @headers={“content-type”=>[“application/json”], “content-length”=>[“58”], “server”=>[“nginx”], “access-control-allow-origin”=>[“*”], “cache-control”=>[“no-cache, no-store, must-revalidate, private”], “expires”=>[“0”], “pragma”=>[“no-cache”], [“ebf5ac536b9f7da40045d75ab918d2ff”], “x-ctxlog-logid”=>[“1-596eca52-241c0b61046624ad7de5c445”], “timing-allow-origin”=>[“”], “date”=>[“Wed, 19 Jul 2017 02:56:18 GMT”], “connection”=>[“close”]}>, :response=>422}

422 usually indicates the user/channel is deleted or suspended. Have you checked the channels you unsuccessfully attempted to follow that they exist in good standing?

Just looked at one. Both follower and followee seem fine. Here’s the channel:

Any other ideas? It’d be nice if Twitch could provide some message.

The only other reason I can think of right now would be that the person following is already at 2000 followed channels, which is the maximum a single user can follow.

Good guess:

1 Like

Anyone from Twitch here able to give us some kind of message we can feed back to the user there? Otherwise we’re going to have to do an extra lookup first.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.