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.