{"error":"Unauthorized","status":401,"message":"OAuth token is missing"}

I am building an app using java, I was able to get authentication token and access the user profile. it was working fine, I refactored my code and suddenly it stopped working. I didn’t do any major change.

I use OAuth authorization code flow so I got the code and then got the access token, everything works file but when I access the user profile using https://api.twitch.tv/helix/users, I get the below error.

{“error”:“Unauthorized”,“status”:401,“message”:“OAuth token is missing”}

so I used curl command to see whether it works, I get the same error. Below is my curl command

curl -H 'Client-ID: '\ -H 'Authorization: bearer '\ -X GET ‘https://api.twitch.tv/helix/users

My code was working but I refactored but didn’t change anything but stopped working, so I tried using curl to see what I am doing wrong, even with curl it is not working.

I am not really sure what I am doing wrong, I would appreciate if some one can please help me.


bearer should be Bearer, it’s case sensitive and can result in an OAuth token is missing error like you’re getting.

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