<?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: https://api.spotify.com/v1/me/albums returns 500 - Internal Server Error in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6056187#M13837</link>
    <description>&lt;P&gt;Can I edit these posts?&amp;nbsp; Where's the button for that?&lt;BR /&gt;&lt;BR /&gt;Anyway that authorization setting up there is supposed to be:&lt;BR /&gt;&lt;SPAN&gt;Add auth data to : request headers&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 07:00:05 GMT</pubDate>
    <dc:creator>thefunkjunky</dc:creator>
    <dc:date>2024-05-08T07:00:05Z</dc:date>
    <item>
      <title>https://api.spotify.com/v1/me/albums returns 500 - Internal Server Error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6056181#M13836</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;&lt;STRONG&gt;USA&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;Macbook Air M1 (via curl and Postman)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MacOs&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;I am attempting to get a list of my saved albums and their respective URLs.&amp;nbsp; To begin, I set up a Postman collection to get the authorization token:&lt;BR /&gt;Auth Type: Oauth 2.0&lt;/P&gt;&lt;P&gt;Auth date to : request headers&lt;/P&gt;&lt;P&gt;token name: access_token&lt;/P&gt;&lt;P&gt;grant type: client credentials&lt;/P&gt;&lt;P&gt;access token url:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://accounts.spotify.com/api/token" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;client id: *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;client secret: **&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;scope:&amp;nbsp;user-library-read&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;client authentication: send as basic auth header&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get the new access token and set it to the current token to be used for all spotify requests.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Header prefix : Bearer&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I test it on publicly available data:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;curl "&lt;A href="https://api.spotify.com/v1/artists/4Z8W4fKeB5YxbusRsdQVPb" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/artists/4Z8W4fKeB5YxbusRsdQVPb&lt;/A&gt;" -H "Authorization: Bearer {the token received above}"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and it works.&lt;/DIV&gt;&lt;DIV&gt;Then I try to get my saved albums:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl &lt;/SPAN&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;location &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.spotify.com/v1/me/albums" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me/albums&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;header &lt;/SPAN&gt;&lt;SPAN&gt;'limit: 50'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;header &lt;/SPAN&gt;&lt;SPAN&gt;'Authorization: Bearer {the same access token}'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and I get a 500 error.&amp;nbsp; I ALWAYS get a 500 error.&amp;nbsp; The docs told me to alert Spotify if I ever get a 500 because there is something clearly going wrong with the backend code.&amp;nbsp; Please help me fix this.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 06:57:06 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6056181#M13836</guid>
      <dc:creator>thefunkjunky</dc:creator>
      <dc:date>2024-05-08T06:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.spotify.com/v1/me/albums returns 500 - Internal Server Error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6056187#M13837</link>
      <description>&lt;P&gt;Can I edit these posts?&amp;nbsp; Where's the button for that?&lt;BR /&gt;&lt;BR /&gt;Anyway that authorization setting up there is supposed to be:&lt;BR /&gt;&lt;SPAN&gt;Add auth data to : request headers&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 07:00:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6056187#M13837</guid>
      <dc:creator>thefunkjunky</dc:creator>
      <dc:date>2024-05-08T07:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.spotify.com/v1/me/albums returns 500 - Internal Server Error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6056468#M13841</link>
      <description>&lt;P&gt;Authorization and Client Credentials are two different things. You can't authorize with client credentials.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 10:32:28 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6056468#M13841</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-05-08T10:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.spotify.com/v1/me/albums returns 500 - Internal Server Error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6057042#M13847</link>
      <description>&lt;P&gt;Care to explain further?&amp;nbsp; I don't know what you mean. I am obtaining a token from this workflow that allows me to GET other api calls without issue. It has the scopes necessary for this API call according to the documentation.&amp;nbsp; I am not getting a 4xx error about my credentials.&amp;nbsp; The fact that its returning a 500 at all is a problem, the application should be catching the problem and responding with a more useful error message.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 16:20:01 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6057042#M13847</guid>
      <dc:creator>thefunkjunky</dc:creator>
      <dc:date>2024-05-08T16:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.spotify.com/v1/me/albums returns 500 - Internal Server Error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6057079#M13848</link>
      <description>&lt;P&gt;In your code I see grant&lt;EM&gt; type&lt;/EM&gt;&lt;STRONG&gt;: &lt;EM&gt;client credentials&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You simply can't access (your) user data with client credentials; only endpoints that don't access user data can use client credentials.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 16:35:15 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6057079#M13848</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-05-08T16:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.spotify.com/v1/me/albums returns 500 - Internal Server Error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6057092#M13849</link>
      <description>&lt;P&gt;ok cool I think I'm getting the idea.&amp;nbsp; so what do I do?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 16:44:35 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6057092#M13849</guid>
      <dc:creator>thefunkjunky</dc:creator>
      <dc:date>2024-05-08T16:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: https://api.spotify.com/v1/me/albums returns 500 - Internal Server Error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6057244#M13850</link>
      <description>&lt;P&gt;You can choose another OAutfow &lt;A href="https://developer.spotify.com/documentation/web-api/concepts/authorization" target="_blank" rel="noopener"&gt;from this page&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If you want to run the code at a back-end server, you can use the &lt;A href="https://developer.spotify.com/documentation/web-api/tutorials/code-flow" target="_blank" rel="noopener"&gt;Authorization code&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;flow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to run all the code inside your browser, you should use the &lt;A href="https://developer.spotify.com/documentation/web-api/tutorials/code-pkce-flow" target="_blank" rel="noopener"&gt;Authorization code with PKCE extension&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 17:54:57 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/https-api-spotify-com-v1-me-albums-returns-500-Internal-Server/m-p/6057244#M13850</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-05-08T17:54:57Z</dc:date>
    </item>
  </channel>
</rss>

