Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I keep getting Response status: 400 Bad Request when trying to authorize #129

Open
Faervan opened this issue Mar 2, 2024 · 1 comment
Open

Comments

@Faervan
Copy link

Faervan commented Mar 2, 2024

I read through the docs and looked at the example, yet when I try to get my access_token, I keep getting Response status: 400 Bad Request.
What is wrong with my Request?

Request { method: POST, uri: https://accounts.spotify.com/api/token, version: HTTP/1.1, headers: {"authorization": "Basic MyBase64String="}, body: "grant_type=client_credentials" }
Response status: 400 Bad Request
Request { method: POST, uri: https://accounts.spotify.com/api/token, version: HTTP/1.1, headers: {"content-type": "application/x-www-form-urlencoded", "authorization": "Basic MyBase64String="}, body: "grant_type=client_credentials" }
Response status: 400 Bad Request
@hoai97nam
Copy link

hoai97nam commented Sep 3, 2024

@Faervan try a node sample code and call by fetch from client side or test on postman. It worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants