<?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: Web SDK Invalid Scope in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606334#M9925</link>
    <description>&lt;P&gt;Oh - your scopes are supposed to be space delimited not comma delimited.&amp;nbsp; Try&amp;nbsp;&amp;nbsp;" ".join(SpotifyCreds.SCOPES)&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 14:08:51 GMT</pubDate>
    <dc:creator>SpotifyTom</dc:creator>
    <dc:date>2023-07-07T14:08:51Z</dc:date>
    <item>
      <title>Web SDK Invalid Scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606225#M9915</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium Student&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;United Kingdom&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Desktop&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 10&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi all, I am trying to follow the Web SDK guide&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/web-playback-sdk/tutorials/getting-started" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/web-playback-sdk/tutorials/getting-started&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I am running into an issue where I get the following console errors:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;GET &lt;A href="https://api.spotify.com/v1/melody/v1/check_scope?scope=web-playback" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/melody/v1/check_scope?scope=web-playback&lt;/A&gt; 403&lt;/LI&gt;&lt;LI&gt;Invalid token scopes&lt;/LI&gt;&lt;LI&gt;PUT &lt;A href="https://cpapi.spotify.com/v1/client/not-sure-if-this-is-sensitive" target="_blank" rel="noopener"&gt;https://cpapi.spotify.com/v1/client/not-sure-if-this-is-sensitive&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;This functionality is restricted to premium users only&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am a premium user, and I am using the following scopes:&lt;/P&gt;&lt;P&gt;"user-read-private",&lt;BR /&gt;"user-read-email"&lt;BR /&gt;"user-top-read"&lt;BR /&gt;"streaming"&lt;BR /&gt;"user-modify-playback-state"&lt;BR /&gt;"app-remote-control"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to add the scope that it seems to be trying to call "web-playback", but then get an illegal scope error. When using the authentication token provided on the actual tutorial page, the app seems to work, it's just when I generate the token myself. The only difference I can see between my scopes and the one the tutorial uses is "openid", however this also returns an illegal scope when I use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone also encountered this error? I'm programming using Python Flask, and making a manual requests call to get the authentication token. Below is how I am authenticating&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;@auth_blueprint.route('/auth/login')
def login():
    sp_oauth = spotipy.oauth2.SpotifyOAuth(
        client_id=SpotifyCreds.CLIENT_ID,
        client_secret=SpotifyCreds.CLIENT_SECRET,
        redirect_uri=config.HOSTNAME + url_for("auth_blueprint.callback"),
        scope=",".join(SpotifyCreds.SCOPES)
    )
    auth_url = sp_oauth.get_authorize_url()
    return redirect(auth_url)


@auth_blueprint.route('/auth/callback')
def callback():
    authorization_code = request.args.get('code')

    if auth_service.callback(authorization_code):
        return redirect(url_for("main_blueprint.home"))
    else:
        return redirect(url_for("auth_blueprint.login"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for anyone that's taken a look into this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 10:16:10 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606225#M9915</guid>
      <dc:creator>jackdev</dc:creator>
      <dc:date>2023-07-07T10:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Web SDK Invalid Scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606227#M9916</link>
      <description>&lt;P&gt;Please ignore this, I figured out how to edit the original post after confirming my email &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 10:15:13 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606227#M9916</guid>
      <dc:creator>jackdev</dc:creator>
      <dc:date>2023-07-07T10:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Web SDK Invalid Scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606264#M9917</link>
      <description>&lt;P&gt;Okay. Did you also find this issue ont GitHub: &lt;A href="https://github.com/spotify/web-playback-sdk/issues/11" target="_blank"&gt;https://github.com/spotify/web-playback-sdk/issues/11&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 11:31:09 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606264#M9917</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-07-07T11:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Web SDK Invalid Scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606278#M9918</link>
      <description>&lt;P&gt;Hi, thanks for replying. I did read that and used the new scopes listed in the latest comment, however unfortunately still no luck.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 11:41:21 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606278#M9918</guid>
      <dc:creator>jackdev</dc:creator>
      <dc:date>2023-07-07T11:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Web SDK Invalid Scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606284#M9920</link>
      <description>&lt;P&gt;Are you using a user with a premium account, or a user with a free account?&amp;nbsp; The error you've provided indicates perhaps that it's a user with a free account?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 11:57:24 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606284#M9920</guid>
      <dc:creator>SpotifyTom</dc:creator>
      <dc:date>2023-07-07T11:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Web SDK Invalid Scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606286#M9921</link>
      <description>&lt;P&gt;Hi, I'm using a paid Spotify student account, so I feel like the error is just a default one after the invalid token scopes error.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 12:07:08 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606286#M9921</guid>
      <dc:creator>jackdev</dc:creator>
      <dc:date>2023-07-07T12:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Web SDK Invalid Scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606334#M9925</link>
      <description>&lt;P&gt;Oh - your scopes are supposed to be space delimited not comma delimited.&amp;nbsp; Try&amp;nbsp;&amp;nbsp;" ".join(SpotifyCreds.SCOPES)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 14:08:51 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/5606334#M9925</guid>
      <dc:creator>SpotifyTom</dc:creator>
      <dc:date>2023-07-07T14:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Web SDK Invalid Scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/6471375#M15386</link>
      <description>&lt;P&gt;Did you ever get this fixed? I'm currently having the same issue and it's driving me nuts&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 11:04:15 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/6471375#M15386</guid>
      <dc:creator>temlabs</dc:creator>
      <dc:date>2024-10-30T11:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Web SDK Invalid Scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/6542233#M15734</link>
      <description>&lt;P&gt;Same, I cannot get this to work . . . ! It's crazy annoying.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 09:53:32 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Web-SDK-Invalid-Scope/m-p/6542233#M15734</guid>
      <dc:creator>kyds3k</dc:creator>
      <dc:date>2024-11-28T09:53:32Z</dc:date>
    </item>
  </channel>
</rss>

