<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Invalid client/Bad request for url: https://accounts.spotify.com/api/token in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Invalid-client-Bad-request-for-url-https-accounts-spotify-com/m-p/5570768#M9002</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;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&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;BR /&gt;File "blahblah/oauth2.py", line 588, in refresh_access_token&lt;BR /&gt;response.raise_for_status()&lt;BR /&gt;File "blahblah/models.py", line 1021, in raise_for_status&lt;BR /&gt;raise HTTPError(http_error_msg, response=self)&lt;BR /&gt;requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: &lt;A href="https://accounts.spotify.com/api/token" target="_blank"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;later, it gives me this error, which I assume comes from the first one not being able to set the connection:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;spotipy.oauth2.SpotifyOauthError: error: invalid_client, error_description: Invalid client.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This was working about 30 minutes before I wrote this. I don't know what to do I'm so lost.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 10:40:18 GMT</pubDate>
    <dc:creator>aalvarezdev</dc:creator>
    <dc:date>2023-04-27T10:40:18Z</dc:date>
    <item>
      <title>Invalid client/Bad request for url: https://accounts.spotify.com/api/token</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Invalid-client-Bad-request-for-url-https-accounts-spotify-com/m-p/5570768#M9002</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;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&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;BR /&gt;File "blahblah/oauth2.py", line 588, in refresh_access_token&lt;BR /&gt;response.raise_for_status()&lt;BR /&gt;File "blahblah/models.py", line 1021, in raise_for_status&lt;BR /&gt;raise HTTPError(http_error_msg, response=self)&lt;BR /&gt;requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: &lt;A href="https://accounts.spotify.com/api/token" target="_blank"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;later, it gives me this error, which I assume comes from the first one not being able to set the connection:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;spotipy.oauth2.SpotifyOauthError: error: invalid_client, error_description: Invalid client.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This was working about 30 minutes before I wrote this. I don't know what to do I'm so lost.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 10:40:18 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Invalid-client-Bad-request-for-url-https-accounts-spotify-com/m-p/5570768#M9002</guid>
      <dc:creator>aalvarezdev</dc:creator>
      <dc:date>2023-04-27T10:40:18Z</dc:date>
    </item>
  </channel>
</rss>

