Announcements

Help Wizard

Step 1

NEXT STEP

Invalid client/Bad request for url: https://accounts.spotify.com/api/token

Invalid client/Bad request for url: https://accounts.spotify.com/api/token

Plan

Premium

 

My Question or Issue

I am creating a discord bot using the spotify API, I'm quite new to python and development, so I will try and explain myself as clear as possible. I created the bot, which sucesfully entered a voice channel, even tho it couldn't play a song. The problem is when I deleted the app and created a new one thinking that could be why it wasn't working. I have used the new id, secret and uri, but now the API gives me this error whenever trying to use the spotipy.Spotify.search method

 

Traceback (most recent call last):
File "blahblah/oauth2.py", line 588, in refresh_access_token
response.raise_for_status()
File "blahblah/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://accounts.spotify.com/api/token

 

later, it gives me this error, which I assume comes from the first one not being able to set the connection:

 

spotipy.oauth2.SpotifyOauthError: error: invalid_client, error_description: Invalid client.

 

This was working about 30 minutes before I wrote this. I don't know what to do I'm so lost.

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random