Closed Sebola3461 closed 2 years ago
Are you sure your auth token is valid? If you are using the client credentials grant and generated this token more than 24 hours ago, it will be expired and invalid and you will need to generate a new one.
Yes, the token is valid. If not, the response code would be 401.
request with invalid token:
right - did you make sure to request the public
scope when authenticating? That endpoint needs the public
scope.
yes.
what's the error message?
what's the error message?
Yes, the token is valid. If not, the response code would be 401.
request with invalid token:
if the token is wrong the response seems to be like this with 401 code:
{
"authentication": "basic"
}
I'm guessing the response from your web server is the exception?
what's the error message?
As mentioned above, that's not the response returned by osu-web. Please check the original response.
I generated the token again and this time it worked, I have no idea why. Because the previous token had just been generated.
My request code:
response: