Here’s a request that has something wrong (multiple ?pagination_token parameters):
GET https://api.twitter.com/2/users/15652782/followers?max_results=500&pagination_token=48HDT0LQHP6HEZZZ&pagination_token=48HDT0LQHP6HEZZZ
It is a bug.
However, it returns a wrong response that’s not indicating what’s wrong with the request:
{
"detail": "Unauthorized",
"status": 401,
"title": "Unauthorized",
"type": "about:blank"
}
I’ve encountered this Unauthorized + about:blank in several other occurrences. It’s unhelpful and I had to intercept requests to debug what’s wrong. (I’m not using a particular API client, hand-writing my own clients.)
2 Likes