<?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: Access error  to authorization uri to get authorization code in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5578694#M9182</link>
    <description>&lt;P&gt;If I understand you correctly, you aren't able to input any text after the printed : .&lt;/P&gt;&lt;P&gt;Can you try to use: &lt;A href="https://github.com/spotipy-dev/spotipy#with-user-authentication" target="_blank"&gt;https://github.com/spotipy-dev/spotipy#with-user-authentication&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 17:04:17 GMT</pubDate>
    <dc:creator>Ximzend</dc:creator>
    <dc:date>2023-05-10T17:04:17Z</dc:date>
    <item>
      <title>Access error  to authorization uri to get authorization code</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5576709#M9103</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;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Japan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows11 PC&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-I have tried to get my liked tracks list as json&amp;nbsp; with coding python/spotipy according to api reference below.I have used Jupyter Lab as editor.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/get-users-saved-tracks" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/web-api/reference/get-users-saved-tracks&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On the way to do that, I knew it needs authorization code .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So, my code and the result returned is below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I clicked authorization url, it was redirected to my spotify site once.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then I pressed "Agree" . but next&amp;nbsp; it has shown 404&amp;nbsp; &amp;nbsp;not found error below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Jupyter Server 404 : Not Found You are requesting a page that does not exist!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;I have set redirect URI as follows.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;A href="http://localhost:8889/callback" target="_blank" rel="noopener"&gt;http://localhost:8889/callback&lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;redirect URIs are all the same in my code and settings in Spotify developer dashboard.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;The reason why I am using 8889 is my port on my Jupyter lab (web server port) is&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;A href="http://localhost:8889" target="_blank" rel="noopener"&gt;http://localhost:8889&lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Although I have not been&amp;nbsp; sure if I should make redirect URI same as port my Jupter Lab Server. ..&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Should it be same?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The more one reason, port # 8888 was already used in my PC by other web server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;I made it all the same regarding on 3 redirect URIs.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Could anyone please give me some advice &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;on what is causing this error and how to fix it?&lt;BR /&gt;I am waiting for your instructions if there is anything I should try to solve it.&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&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;&lt;STRONG&gt;&lt;A href="https://developer.spotify.com/documentation/web-api/tutorials/code-flow" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/web-api/tutorials/code-flow&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;A part of My code&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Set up the SpotifyOAuth object&lt;BR /&gt;auth_manager = SpotifyOAuth(&lt;BR /&gt;client_id=client_id,&lt;BR /&gt;client_secret=client_secret,&lt;BR /&gt;redirect_uri=redirect_uri,&lt;BR /&gt;scope=scope&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;# Get the authorization URL and have the user authorize your app&lt;BR /&gt;auth_url = auth_manager.get_authorize_url()&lt;BR /&gt;print(f'Please visit this URL to authorize the application: {auth_url}')&lt;/P&gt;&lt;P&gt;# After the user authorizes your app, get the authorization code from the redirect URL&lt;BR /&gt;# and use it to get an access token&lt;BR /&gt;code = input('Please enter the authorization code: ')&lt;BR /&gt;auth_manager.get_access_token(code)&lt;/P&gt;&lt;P&gt;# Now you can use Spotipy to make authenticated API requests&lt;BR /&gt;sp = spotipy.Spotify(auth_manager=auth_manager)&lt;BR /&gt;results = sp.current_user_saved_tracks(limit=10, offset=5, market='JP')&lt;BR /&gt;print(results)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;The result returned&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please visit this URL to authorize the application: &lt;A href="https://accounts.spotify.com/authorize?client_id=xxxxxxxxxxxxxxxxxxx&amp;amp;response_type=code&amp;amp;redirect_uri=http%3A%2F%2Flocalhost%3A8889%2Fcallback&amp;amp;scope=user-library-read" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/authorize?client_id=xxxxxxxxxxxxxxxxxxx&amp;amp;response_type=code&amp;amp;redirect_uri=http%3A%2F%2Flocalhost%3A8889%2Fcallback&amp;amp;scope=user-library-read&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please enter the authorization code:&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 11:59:09 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5576709#M9103</guid>
      <dc:creator>meowsa00</dc:creator>
      <dc:date>2023-05-07T11:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Access error  to authorization uri to get authorization code</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5576812#M9104</link>
      <description>&lt;P&gt;The following answer is for Google Colab, but it should also work for you: &lt;A href="https://stackoverflow.com/a/68651136/7111585" target="_blank"&gt;https://stackoverflow.com/a/68651136/7111585&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 13:55:40 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5576812#M9104</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-05-07T13:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access error  to authorization uri to get authorization code</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5577725#M9159</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 999px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/156850i22C4DA4A8F9D4692/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.jpg" style="width: 999px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/156851i19934B9DA7A9E7C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 999px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/156848iC65BC465DDF21375/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.jpg" style="width: 999px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/156849iCA65FF2226A7B16D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;Thanks. I tried that way like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Set up the SpotifyOAuth object&lt;BR /&gt;auth_manager = SpotifyOAuth(&lt;BR /&gt;client_id=client_id,&lt;BR /&gt;client_secret=client_secret,&lt;BR /&gt;redirect_uri=redirect_uri,&lt;BR /&gt;scope=scope,&lt;BR /&gt;open_browser = False&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the same incident has still happened.&lt;/P&gt;&lt;P&gt;So Next,&lt;/P&gt;&lt;P&gt;I changed redirect URI in several cases and tried that some times.&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:9009/callback" target="_blank" rel="noopener"&gt;http://localhost:8080/callback&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The port 8080 above has not been used by Jupyter lab.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:9009/callback" target="_blank" rel="noopener"&gt;http://localhost:9009/callback&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The port 9090 has shown "established" on the powershell by&amp;nbsp; command prompt "netstat -na".&lt;/P&gt;&lt;P&gt;The redirect URI in my code and the redirect URI in the&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;settings in Spotify developer dashboard are same.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Next, I tried to execute same code in VScode that does not use web server.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;The result has shown the message and promt.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Please visit this URL to authorize the application: &lt;A href="https://accounts.spotify.com/authorize?client_id=XXXXXXXXXXXXXX&amp;amp;response_type=code&amp;amp;redirect_uri=http%3A%2F%2Flocalhost%3A9009%2Fcallback&amp;amp;scope=user-library-read" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/authorize?client_id=XXXXXXXXXXXXXX&amp;amp;response_type=code&amp;amp;redirect_uri=http%3A%2F%2Flocalhost%3A9009%2Fcallback&amp;amp;scope=user-library-read&lt;/A&gt;&lt;BR /&gt;Please enter the authorization code:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;So I clicked URL has been shown.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;However, The same 404 error like below&amp;nbsp; has still happened.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Is there anyone who knows what the cause is?&lt;BR /&gt;I would appreciate it if you could give me some hints to find a solution.&lt;/SPAN&gt;&lt;/STRONG&gt;&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;&lt;STRONG&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This site cannot be reached Connection refused on localhost.&lt;BR /&gt;try next&lt;/P&gt;&lt;P&gt;Check connection&lt;BR /&gt;Check proxies and firewalls&lt;BR /&gt;ERR_CONNECTION_REFUSED&lt;BR /&gt;Check your internet connection&lt;BR /&gt;Check your cables and restart any network devices you are using (routers, modems, etc.).&lt;BR /&gt;Allow Chrome access to your network in your firewall and antivirus settings.&lt;BR /&gt;If it already appears as a program allowed to access the network, try removing it from the list and adding it again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using a proxy server...&lt;BR /&gt;Check your proxy settings or contact your network administrator to see if your proxy server is working properly. If you are not using a proxy server, please try the next method. To disable this option: Go to Chrome menu &amp;gt; Settings &amp;gt; Show advanced settings… &amp;gt; Change proxy settings… &amp;gt; LAN settings and uncheck Use a proxy server for your LAN to&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 07:34:53 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5577725#M9159</guid>
      <dc:creator>meowsa00</dc:creator>
      <dc:date>2023-05-09T07:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Access error  to authorization uri to get authorization code</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5578694#M9182</link>
      <description>&lt;P&gt;If I understand you correctly, you aren't able to input any text after the printed : .&lt;/P&gt;&lt;P&gt;Can you try to use: &lt;A href="https://github.com/spotipy-dev/spotipy#with-user-authentication" target="_blank"&gt;https://github.com/spotipy-dev/spotipy#with-user-authentication&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 17:04:17 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5578694#M9182</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-05-10T17:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Access error  to authorization uri to get authorization code</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5581276#M9226</link>
      <description>&lt;P&gt;Thank you for your information.&lt;BR /&gt;I already checked the Github link you gave me.&lt;BR /&gt;but&lt;BR /&gt;After doing some research on my own,&lt;BR /&gt;Turns out the Redirect URI itself wasn't the real cause of my problem.&lt;BR /&gt;What I needed to solve the problem was the work described on the following site. (get access token using linux command)&lt;BR /&gt;The site below is written in Japanese, but this information is valuable for those who have the same problem as me.&lt;BR /&gt;&lt;A href="https://takagi.blog/get-and-refresh-access-tokens-for-the-spotify-web-api/" target="_blank"&gt;https://takagi.blog/get-and-refresh-access-tokens-for-the-spotify-web-api/&lt;/A&gt;&lt;BR /&gt;Therefore, we recommend using machine translation to check the information on the site.&lt;BR /&gt;The work is still in progress.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 16:58:07 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Access-error-to-authorization-uri-to-get-authorization-code/m-p/5581276#M9226</guid>
      <dc:creator>meowsa00</dc:creator>
      <dc:date>2023-05-15T16:58:07Z</dc:date>
    </item>
  </channel>
</rss>

