<?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 Dealing with HTTP Status 400, Code: -1 in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Dealing-with-HTTP-Status-400-Code-1/m-p/5434763#M6536</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;India&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HP Omen&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;So I recently started using Spotify's API through Spotipy library in Python for a school project.&lt;BR /&gt;The objective of our project is to analyze the songs in Billboard HOT 100 since 1960.&lt;BR /&gt;I got the data for all the Billboard songs and wrote a code to get the Spotify URIs for all these songs using Search query provided by the API using Spotipy.&lt;BR /&gt;&lt;BR /&gt;I am getting a Spotify Exception with HTTP Status: 400, Code: -1, for the following line of 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;LI-CODE lang="python"&gt;sp.search(q="track: A Rockin' Good Way (To Mess Around and Fall in Love) artist: Dinah Washington &amp;amp; Brook Benton year: 1960",type='track') &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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, sp is the Spotify client.&lt;BR /&gt;&lt;BR /&gt;I assumed this had something to do with the string quotes or the ampersand (&amp;amp;) but it doesn't seem to be the case because I have tried all possible combinations.&lt;BR /&gt;&lt;BR /&gt;I would like to know how to deal with this.&lt;BR /&gt;&lt;BR /&gt;Thank you.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 24 Sep 2022 00:01:26 GMT</pubDate>
    <dc:creator>ChaitanyaGvs</dc:creator>
    <dc:date>2022-09-24T00:01:26Z</dc:date>
    <item>
      <title>Dealing with HTTP Status 400, Code: -1</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Dealing-with-HTTP-Status-400-Code-1/m-p/5434763#M6536</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;India&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HP Omen&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;So I recently started using Spotify's API through Spotipy library in Python for a school project.&lt;BR /&gt;The objective of our project is to analyze the songs in Billboard HOT 100 since 1960.&lt;BR /&gt;I got the data for all the Billboard songs and wrote a code to get the Spotify URIs for all these songs using Search query provided by the API using Spotipy.&lt;BR /&gt;&lt;BR /&gt;I am getting a Spotify Exception with HTTP Status: 400, Code: -1, for the following line of 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;LI-CODE lang="python"&gt;sp.search(q="track: A Rockin' Good Way (To Mess Around and Fall in Love) artist: Dinah Washington &amp;amp; Brook Benton year: 1960",type='track') &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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, sp is the Spotify client.&lt;BR /&gt;&lt;BR /&gt;I assumed this had something to do with the string quotes or the ampersand (&amp;amp;) but it doesn't seem to be the case because I have tried all possible combinations.&lt;BR /&gt;&lt;BR /&gt;I would like to know how to deal with this.&lt;BR /&gt;&lt;BR /&gt;Thank you.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 00:01:26 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Dealing-with-HTTP-Status-400-Code-1/m-p/5434763#M6536</guid>
      <dc:creator>ChaitanyaGvs</dc:creator>
      <dc:date>2022-09-24T00:01:26Z</dc:date>
    </item>
  </channel>
</rss>

