OAuth authorization code flow - "Missing column authorization_id"

Hi,

I am running into an issue and cannot seem to find any previous threads on this particular error. I am trying to get the access token from the Twitch API but the POST request comes back with an ambiguous error.

curl --location --request POST 'https://id.twitch.tv/oauth2/token?client_id=<client_id>&client_secret=<secret>&code=<code>&grant_type=authorization_code&redirect_uri=<redirect_uri>' \
--header 'Accept: application/json'

The response I get from the API is

{"status":500,"message":"Missing column authorization_id from item map[]"}

I don’t see anything wrong with your request. I wonder if there is something odd with the account that is trying to login via your flow, since you are staff.

Looks like a bug for the bug tracker however

As it’s not something I’ve seen before either

I added an issue: https://github.com/twitchdev/issues/issues/200

Would be great if someone can take a look soon.

I created another app and it works. Still would like to know how the other app may have gotten into a bad state?

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