<?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 Server Error, HTTP Response 206: User Authentication Flow via Python in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Server-Error-HTTP-Response-206-User-Authentication-Flow-via/m-p/5493961#M7745</link>
    <description>see: &lt;A href="https://stackoverflow.com/questions/75230171/http-request-code-206-spotify-server-error" target="_blank"&gt;https://stackoverflow.com/questions/75230171/http-request-code-206-spotify-server-error&lt;/A&gt;</description>
    <pubDate>Wed, 25 Jan 2023 07:10:16 GMT</pubDate>
    <dc:creator>-3o_jmivlcm1y</dc:creator>
    <dc:date>2023-01-25T07:10:16Z</dc:date>
    <item>
      <title>Server Error, HTTP Response 206: User Authentication Flow via Python</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Server-Error-HTTP-Response-206-User-Authentication-Flow-via/m-p/5493961#M7745</link>
      <description>see: &lt;A href="https://stackoverflow.com/questions/75230171/http-request-code-206-spotify-server-error" target="_blank"&gt;https://stackoverflow.com/questions/75230171/http-request-code-206-spotify-server-error&lt;/A&gt;</description>
      <pubDate>Wed, 25 Jan 2023 07:10:16 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Server-Error-HTTP-Response-206-User-Authentication-Flow-via/m-p/5493961#M7745</guid>
      <dc:creator>-3o_jmivlcm1y</dc:creator>
      <dc:date>2023-01-25T07:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Server Error, HTTP Response 206: User Authentication Flow via Python</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Server-Error-HTTP-Response-206-User-Authentication-Flow-via/m-p/5494307#M7747</link>
      <description>&lt;P&gt;&lt;SPAN&gt;That request is getting a website; not a json object. The&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/code-flow/" target="_blank" rel="nofollow noopener noreferrer"&gt;Authorization Code Flow&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;is more complex than your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, the header should be:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;headers = {"Content-Type": "application/x-www-form-urlencoded"}&lt;/EM&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B&lt;/SPAN&gt;&lt;SPAN&gt;ecause it returns html code, and not json, &lt;EM&gt;.json()&lt;/EM&gt; causes an error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just replace the header, remove &lt;EM&gt;.json()&lt;/EM&gt;, try print out the response with &lt;EM&gt;print(code.text)&lt;/EM&gt;, and see it for yourself.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 18:31:36 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Server-Error-HTTP-Response-206-User-Authentication-Flow-via/m-p/5494307#M7747</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-01-25T18:31:36Z</dc:date>
    </item>
  </channel>
</rss>

