<?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 Re: A token problem in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/A-token-problem/m-p/5534908#M8657</link>
    <description>&lt;P&gt;Can you please post your code, so I can check it?&lt;/P&gt;&lt;P&gt;The problem can be that you are trying to use Client Credentials when &lt;A href="https://github.com/spotipy-dev/spotipy#with-user-authentication" target="_blank" rel="noopener"&gt;Authorization&lt;/A&gt; is required, or/and not using the required &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/scopes#:~:text=streaming-,Playlists,-playlist%2Dread%2Dprivate" target="_blank" rel="noopener"&gt;Playlist scopes&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(click link for all of them).&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 05:28:17 GMT</pubDate>
    <dc:creator>Ximzend</dc:creator>
    <dc:date>2023-04-06T05:28:17Z</dc:date>
    <item>
      <title>A token problem</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/A-token-problem/m-p/5534850#M8656</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Colombia&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Huawei Matebook D14&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 11&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;In my code I get an error regarding the tokens or so I understand.&lt;BR /&gt;The error it shows me is the following:&lt;BR /&gt;HTTP Error for POST to &lt;A href="https://api.spotify.com/v1/users/0cxaozs3a5z8m26vwzzc80wb9/playlists" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/users/0cxaozs3a5z8m26vwzzc80wb9/playlists&lt;/A&gt; with Params: {} returned 403 due to Insufficient client scope&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\Cgalv\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\spotipy\client.py", line 269, in _internal_call&lt;BR /&gt;response.raise_for_status()&lt;BR /&gt;File "C:\Users\Cgalv\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\models.py", line 1021, in raise_for_status&lt;BR /&gt;raise HTTPError(http_error_msg, response=self)&lt;BR /&gt;requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: &lt;A href="https://api.spotify.com/v1/users/0cxaozs3a5z8m26vwzzc80wb9/playlists" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/users/0cxaozs3a5z8m26vwzzc80wb9/playlists&lt;/A&gt;&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\Users\Cgalv\OneDrive\Desktop\Project\spotify2.py", line 23, in &amp;lt;module&amp;gt;&lt;BR /&gt;playlist = sp.user_playlist_create(user=sp.me()["id"], name=playlist_name, public=False)&lt;BR /&gt;File "C:\Users\Cgalv\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\spotipy\client.py", line 816, in user_playlist_create&lt;BR /&gt;return self._post("users/%s/playlists" % (user,), payload=data)&lt;BR /&gt;File "C:\Users\Cgalv\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\spotipy\client.py", line 326, in _post&lt;BR /&gt;return self._internal_call("POST", url, payload, kwargs)&lt;BR /&gt;File "C:\Users\Cgalv\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\spotipy\client.py", line 291, in _internal_call&lt;BR /&gt;raise SpotifyException(&lt;BR /&gt;spotipy.exceptions.SpotifyException: http status: 403, code:-1 - &lt;A href="https://api.spotify.com/v1/users/0cxaozs3a5z8m26vwzzc80wb9/playlists" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/users/0cxaozs3a5z8m26vwzzc80wb9/playlists&lt;/A&gt;:&lt;BR /&gt;Insufficient client scope, reason: None&lt;BR /&gt;&lt;BR /&gt;I have no idea why this is happening,&amp;nbsp;so i hope you can help me guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 02:36:20 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/A-token-problem/m-p/5534850#M8656</guid>
      <dc:creator>CharlieZapp</dc:creator>
      <dc:date>2023-04-06T02:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: A token problem</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/A-token-problem/m-p/5534908#M8657</link>
      <description>&lt;P&gt;Can you please post your code, so I can check it?&lt;/P&gt;&lt;P&gt;The problem can be that you are trying to use Client Credentials when &lt;A href="https://github.com/spotipy-dev/spotipy#with-user-authentication" target="_blank" rel="noopener"&gt;Authorization&lt;/A&gt; is required, or/and not using the required &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/scopes#:~:text=streaming-,Playlists,-playlist%2Dread%2Dprivate" target="_blank" rel="noopener"&gt;Playlist scopes&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(click link for all of them).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 05:28:17 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/A-token-problem/m-p/5534908#M8657</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-04-06T05:28:17Z</dc:date>
    </item>
  </channel>
</rss>

