<?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: Failed Add Item To Play Queue in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6193259#M14466</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to update this with the solution. At the time of writing this, &lt;STRONG&gt;all versions of Godot for 4.X up to 4.2.2 &amp;amp; 4.3 beta incur an Http Request failure when sending a&amp;nbsp;POST&amp;nbsp;call with 0 bytes of information&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The header of &lt;STRONG&gt;Content-Length&amp;nbsp;&lt;/STRONG&gt;is not appended to the &lt;STRONG&gt;Godot HttpRequest&amp;nbsp;&lt;/STRONG&gt;headers automatically when a &lt;STRONG&gt;POST&amp;nbsp;&lt;/STRONG&gt;is sent to an endpoint with a body length of 0&amp;nbsp;&amp;amp; requires manual insertion in the headers for&amp;nbsp;the built-in &lt;STRONG&gt;Godot HttpRequest&lt;/STRONG&gt; class, e.g., "&lt;STRONG&gt;Content-Length: 0&lt;/STRONG&gt;," in order to properly send.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was not an error from&amp;nbsp;&lt;STRONG&gt;Spotify APIs&lt;/STRONG&gt;, only the&amp;nbsp;&lt;STRONG&gt;Godot Engine&lt;/STRONG&gt;. I am able to successfully make&amp;nbsp;&lt;STRONG&gt;POST&amp;nbsp;&lt;/STRONG&gt;calls now that I've manually added&amp;nbsp;"&lt;STRONG&gt;Content-Length: 0&lt;/STRONG&gt;" to the headers when there is no information being sent up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2024 13:38:10 GMT</pubDate>
    <dc:creator>SmoothDagger</dc:creator>
    <dc:date>2024-07-15T13:38:10Z</dc:date>
    <item>
      <title>Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6179729#M14385</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;US&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Desktop 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;PREFIX:&amp;nbsp;&lt;/STRONG&gt;My account was started yesterday &amp;amp; set to the single-user monthly premium account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies, this question keeps getting flagged as spam when I add links to various APIs so I will just leave everything bold instead of using links.&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 data-unlink="true"&gt;I have a Godot desktop application that I added Spotify to. I've been able to successfully execute various Spotify REST APIs, such as&lt;STRONG&gt;&amp;nbsp;Getting Available Devices&amp;nbsp;&lt;/STRONG&gt;&amp;amp;&amp;nbsp;&lt;STRONG&gt;Searching for an Item&lt;/STRONG&gt;, returning either 200, 202, or 204 success codes using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Godot's HTTP Request class&lt;/STRONG&gt;. However, I keep failing POST calls to APIs that require the '&lt;STRONG&gt;user-modify-playback-state&lt;/STRONG&gt;' authorization scope, e.g.,&amp;nbsp;&lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;. Do note that I already have&amp;nbsp;other entire HTTP API suites (e.g., Twitch APIs) implemented &amp;amp; working currently using GETs, POSTs, PUTs, &amp;amp; DELETEs in this application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have granted access to the application with Spotify's application authorization redirect page &amp;amp; confirmed it is listed under my Spotify account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current Authorization Scopes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;user-modify-playback-state&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;user-read-currently-playing&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;user-read-playback-state&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;user-read-private&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;This has resulted in an authorization code that I was able to use for retrieving an access token that verified the authorization scopes I used, via.,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;the Request an Access Token response&lt;/STRONG&gt;. All requested authorization scopes were included in the "&lt;STRONG&gt;scope&lt;/STRONG&gt;" response body in the spaced format, e.g.,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"&lt;STRONG&gt;user-modify-playback-state user-read-currently-playing user-read-playback-state user-read-private&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;With respect to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;,&amp;nbsp;&amp;amp; subsequent APIs that require the&amp;nbsp;&lt;STRONG&gt;user-modify-playback-state&lt;/STRONG&gt;, this is resulting in an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;error code from Godot's HTTP Request class&amp;nbsp;&lt;/STRONG&gt;that signals I do not have write access since adding an item to the playback queue is a POST request. If I change the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;&amp;nbsp;request to a GET request, it will succeed with a 200-success code as if I attempted to use&amp;nbsp;&lt;STRONG&gt;Get the User's Queue&lt;/STRONG&gt;, as they share the same base endpoint. I presume the Uri that is required for the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;&amp;nbsp;endpoint is discarded when making the GET request. Using the correct POST HTTP request, the resulting headers &amp;amp; body for the call to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;are empty with an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;HTTP response code of 0&lt;/STRONG&gt;, not even a 4XX error code. I am uncertain why I am getting a write access error when my access token was approved for&amp;nbsp;&lt;STRONG&gt;user-modify-playback-state&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;I have the HTTP request being sent out to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;API&amp;nbsp;after a search item has been successfully retrieved from the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Searching for an Item&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;API&lt;/SPAN&gt;&lt;SPAN&gt;. I tested a Uri retrieved from the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Searching for an Item&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;API on the documentation page 'Try' section of the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;API, which successfully added the track to my Spotify queue. The subsequent&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;API&amp;nbsp;fails in the application with the Godot error &amp;amp; a response code of 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any inclination of what I may be doing incorrectly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;STRONG&gt;The biggest flag here is that I already have 40+ Twitch HTTP APIs working correctly with POSTs, GETs, &amp;amp; DELETEs. I do not think this is an error within Godot or my application's HTTP set up.&amp;nbsp;&lt;/STRONG&gt;My biggest inclination is thinking that my account is not approved for&amp;nbsp;&lt;STRONG&gt;user-modify-playback-state&amp;nbsp;&lt;/STRONG&gt;authorization or that it's because my Spotify account was started yesterday with premium. I do know the&amp;nbsp;&lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;API I am trying to access requires an account to have premium.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things I've verified:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ensured&lt;SPAN&gt; &lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;API endpoint Uri is correct.&lt;/LI&gt;&lt;LI&gt;Ensured authorization scopes included&amp;nbsp;&lt;STRONG&gt;user-modify-playback-state&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Removed authorization of the application, requested a new authorization code, re-authorized the application for account access, &amp;amp; requested a new access token with the new authorization code.&lt;/LI&gt;&lt;LI&gt;Successfully tested other endpoints that did not require&amp;nbsp;&lt;STRONG&gt;user-modify-playback-state&amp;nbsp;&lt;/STRONG&gt;authorization scope &amp;amp; received 2XX success codes.&lt;/LI&gt;&lt;LI&gt;Verified ability to queue up a song correctly with a retrieved search item Uri through the test API on the&lt;SPAN&gt; &lt;STRONG&gt;Add Item to Playback Queue&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;API documentation page.&lt;/LI&gt;&lt;LI&gt;Verified application was approved for access on my Spotify account, e.g., &lt;STRONG&gt;Manage Apps&amp;nbsp;&lt;/STRONG&gt;in Spotify.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 07 Jul 2024 19:03:19 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6179729#M14385</guid>
      <dc:creator>SmoothDagger</dc:creator>
      <dc:date>2024-07-07T19:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6179765#M14386</link>
      <description>&lt;P&gt;Hi&amp;nbsp;SmoothDagger,&lt;/P&gt;&lt;P&gt;Do you have implemented an Authorization code flow?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 19:28:01 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6179765#M14386</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-07-07T19:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6179925#M14390</link>
      <description>&lt;P&gt;Hey there, Ximzend!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes! I do use the normal authorization code flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a little rigid at the moment since I'm still testing:&lt;BR /&gt;&lt;BR /&gt;OS.ShellOpen(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uri: $"&lt;A href="https://accounts.spotify.com/authorize" target="_blank"&gt;https://accounts.spotify.com/authorize&lt;/A&gt;?" +&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $"client_id={m_spotifyData.ClientId}&amp;amp;" +&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $"response_type=code&amp;amp;" +&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $"redirect_uri={c_redirectUri}&amp;amp;" +&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $"scope={Uri.EscapeDataString(c_userAccessScopes)}"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This opens up the authorization window in the browser, including giving permissions to the app, if necessary, &amp;amp; retrieving the long authorization code string that's returned in the Uri, e.g., code=asdasdas....20221asda. I use the returned authorization code to retrieve an access token:&lt;BR /&gt;&lt;BR /&gt;var headers = new string[]&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $"Content-Type: application/x-www-form-urlencoded",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $"Authorization: Basic {Convert.ToBase64String(inArray: Encoding.UTF8.GetBytes(s: $"{m_spotifyData.ClientId}:{m_spotifyData.ClientSecret}"))}"&lt;BR /&gt;};&lt;BR /&gt;m_httpManager.SendHttpRequest(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url: $"{c_urlAccessToken}",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; headers: headers,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; method: Method.Post,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; json:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $"grant_type=authorization_code&amp;amp;" +&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $"code={c_authorizationCode}&amp;amp;" +&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $"redirect_uri={c_redirectUri}",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestCompletedHandler: OnRequestAccessTokenCompleted&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, I receive a 200-success code from Spotify with a body containing all the information, .e.g., access token, refresh token, scopes I've been approved for, etc. I use the access token sent down for all my API calls. The approved scope contains the&amp;nbsp;&lt;STRONG&gt;user-modify-playback-state&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 21:18:47 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6179925#M14390</guid>
      <dc:creator>SmoothDagger</dc:creator>
      <dc:date>2024-07-07T21:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6180410#M14397</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried furthering this investigation. Rather than using a search result, I sampled the Uri that is provided in the&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/add-to-queue" target="_self"&gt;Add to Queue&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;API, namely:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;https://api.spotify.com/v1/me/player/queue?uri=spotify%3Atrack%3A4iV5W9uYEdYUVa79Axb7Rh&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This also fails using the following HTTP call with a 0-response code &amp;amp; the Godot error code of "Request failed due to connection (read/write) error"&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var headers = new string[]&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $"Authorization: Bearer {m_spotifyAccessToken.AccessToken}",&lt;BR /&gt;};&lt;BR /&gt;m_httpManager.SendHttpRequest(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url: $"&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;A href="https://api.spotify.com/v1/me/player/queue?uri=spotify%3Atrack%3A4iV5W9uYEdYUVa79Axb7Rh" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/me/player/queue?uri=spotify%3Atrack%3A4iV5W9uYEdYUVa79Axb7Rh&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; headers: headers,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; method: Method.Post,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; json: string.Empty,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestCompletedHandler: OnTrackQueueCompleted&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The access token I have 100% works as I was able to make a successful call to the&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/search" target="_self"&gt;Search&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;API &amp;amp; proceeded to fail when I put in a dummy access token, e.g., "&lt;STRONG&gt;Authorization: Bearer Q&lt;/STRONG&gt;" or completely removed the header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further steps include:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding the application as an exception to the Windows Firewall.&lt;/LI&gt;&lt;LI&gt;Disabling Windows Firewall for both private &amp;amp; public.&lt;/LI&gt;&lt;LI&gt;Removing the&amp;nbsp;&lt;STRONG&gt;user-read-private&amp;nbsp;&lt;/STRONG&gt;access scope &amp;amp; generating a new authorization code &amp;amp; access token.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm still at a loss for what I may be doing incorrectly &amp;amp; why the Godot HTTP request would signal that there's a connection issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 04:59:09 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6180410#M14397</guid>
      <dc:creator>SmoothDagger</dc:creator>
      <dc:date>2024-07-08T04:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6180583#M14399</link>
      <description>&lt;P&gt;Thank you for the detailed explanation. Sadly I don't have knowledge about Godot.&lt;/P&gt;&lt;P&gt;I read your initial post again and saw the app was already listed in your account, so it is no authorization issue.&lt;/P&gt;&lt;P&gt;Does &lt;A href="https://developer.spotify.com/documentation/web-api/reference/get-information-about-the-users-current-playback" target="_blank" rel="noopener"&gt;Get Playback State&lt;/A&gt; work?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 08:17:00 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6180583#M14399</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-07-08T08:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6180908#M14402</link>
      <description>&lt;P&gt;Hi Ximzend,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not a problem! I only reference Godot because the application is built in Godot &amp;amp; uses Godot's own HTTP Request object to handle web calls. I've used the built-in web requests successfully for accessing tons of endpoints using the Twitch APIs, so I don't think it's Godot's web requests that are failing here. I haven't seen this error code for a Godot connection issue once; It's almost like it's blocking the web request before it's even sent. These error codes are not the web response error codes like 401, 404, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With respect to&lt;STRONG&gt;&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/get-information-about-the-users-current-playback" target="_self"&gt;Get Playback State&lt;/A&gt;&lt;/STRONG&gt;, I'm able to reach the endpoint. I receive both the 200 &amp;amp; 204 response codes, depending on whether the Spotify player is active or not, respectively. I'm also able to reach the&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/get-a-users-available-devices" target="_self"&gt;Get Available Devices&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;API endpoint, which I tried using the &lt;STRONG&gt;device_id&amp;nbsp;&lt;/STRONG&gt;that's returned as the optional&amp;nbsp;&lt;STRONG&gt;device_id&amp;nbsp;&lt;/STRONG&gt;parameter that can be included in the&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://developer.spotify.com/documentation/web-api/reference/add-to-queue" target="_self"&gt;Add to Queue&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My inclination is that I am being denied server access on Spotify's end for queuing songs. &lt;A href="https://forum.godotengine.org/t/http-requests-always-fail-in-html5/3412" target="_self"&gt;&lt;STRONG&gt;I read something on CORS issues when making web requests&lt;/STRONG&gt;&lt;/A&gt;, but since my application is just a desktop application &amp;amp; not a web browser, I'm not certain where to find the output of that information. I presume Spotify supports desktop applications with web requests, especially since I've made other successful requests.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 13:29:08 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6180908#M14402</guid>
      <dc:creator>SmoothDagger</dc:creator>
      <dc:date>2024-07-08T13:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6184860#M14427</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthered some investigations. I was able to successfully make calls using Postman &amp;amp; songs were added to my Spotify queue. Are there some special requirements for desktop applications? It doesn't make much sense that Postman is able to reach the API successfully as an application but mine cannot. I'm at a complete loss on why my application would be failing these calls if I'm using the same Uri &amp;amp; I'm able to make calls to other Spotify APIs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a few screenshots from the application.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The approval &amp;amp; access granting that pops up after launching the application.&amp;nbsp;&lt;STRONG&gt;Note: this contains controlling Spotify on devices&lt;/STRONG&gt;, which is the requirement for queuing up songs, as far as I'm aware.&lt;/LI&gt;&lt;LI&gt;The access token I'm receiving. As far as I saw in the documentation, these are the correct formatting, e.g., &lt;STRONG&gt;Content-Type:&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;application/x-www-form-urlencoded&lt;/STRONG&gt; &amp;amp;&amp;nbsp;&lt;STRONG&gt;Authorization: Basic {client_id}:{client_secret}.ToBytes()&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;The API request that is sent to the&amp;nbsp;&lt;STRONG&gt;Queue to Playlist&lt;/STRONG&gt;&amp;nbsp;in a red outlined box. This is the call that is made after a&amp;nbsp;&lt;STRONG&gt;successful&amp;nbsp;&lt;/STRONG&gt;search response from Spotify with the first track found. I've tested the same search result with the complete endpoint in Postman &amp;amp; it works just fine.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 15:54:36 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6184860#M14427</guid>
      <dc:creator>SmoothDagger</dc:creator>
      <dc:date>2024-07-10T15:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6185022#M14429</link>
      <description>&lt;P&gt;I've found these documentation pages with different code then yours:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.godotengine.org/en/stable/tutorials/networking/http_request_class.html" target="_blank"&gt;https://docs.godotengine.org/en/stable/tutorials/networking/http_request_class.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.godotengine.org/en/stable/classes/class_httprequest.html" target="_blank"&gt;https://docs.godotengine.org/en/stable/classes/class_httprequest.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 17:32:14 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6185022#M14429</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-07-10T17:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6185121#M14430</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Ximzend&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nice to see you again&lt;/SPAN&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With respect to different code&lt;/SPAN&gt;&lt;SPAN&gt;, are you referring to GDScript vs C&lt;/SPAN&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;SPAN&gt;? In each of the code sections&lt;/SPAN&gt;&lt;SPAN&gt;, it has samples for each one&lt;/SPAN&gt;&lt;SPAN&gt;; by default&lt;/SPAN&gt;&lt;SPAN&gt;, it&lt;/SPAN&gt;&lt;SPAN&gt;'s set to GDScript&lt;/SPAN&gt;&lt;SPAN&gt;. There are a few buttons at the top that allow you to switch between the two languages.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do have multithreading set up&lt;/SPAN&gt;&lt;SPAN&gt;, so in the above samples&lt;/SPAN&gt;&lt;SPAN&gt;, you&lt;/SPAN&gt;&lt;SPAN&gt;'ll notice it calls &lt;STRONG&gt;m&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;_httpManager.SendHttpRequest()&lt;/STRONG&gt;&lt;SPAN&gt;, which allows for Godot's&amp;nbsp;&lt;STRONG&gt;Nodes&lt;/STRONG&gt; to be handled on the main thread&lt;/SPAN&gt;&lt;SPAN&gt;. All &lt;STRONG&gt;HttpRequests&lt;/STRONG&gt; inherit from Godot's &lt;STRONG&gt;Node&lt;/STRONG&gt; class&lt;/SPAN&gt;&lt;SPAN&gt;, the fundamental type of Godot objects&lt;/SPAN&gt;&lt;SPAN&gt;, which requires it to be added in the Node tree for execution&lt;/SPAN&gt;&lt;SPAN&gt;. My &lt;STRONG&gt;HttpManager&lt;/STRONG&gt; processes these on the main thread &amp;amp; adds them to the Node tree for execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Http Requests have the same data that is provided in the Godot documentation you provided&lt;/SPAN&gt;&lt;SPAN&gt;, e&lt;/SPAN&gt;&lt;SPAN&gt;.g&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Uri&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Headers&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Type of Http Request &lt;/SPAN&gt;&lt;SPAN&gt;(PUT&lt;/SPAN&gt;&lt;SPAN&gt;, GET&lt;/SPAN&gt;&lt;SPAN&gt;, POST&lt;/SPAN&gt;&lt;SPAN&gt;, etc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Body information &lt;/SPAN&gt;&lt;SPAN&gt;(which is not required for this POST&lt;/SPAN&gt;&lt;SPAN&gt;, as far as I can tell&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Callback method &lt;/SPAN&gt;&lt;SPAN&gt;(which is the same as the &lt;STRONG&gt;OnCompletion&lt;/STRONG&gt; event&lt;/SPAN&gt;&lt;SPAN&gt;, except that this is queued into the &lt;STRONG&gt;HttpManager &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp; needs reference of it&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I provided some additional context through a few code snippets:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the&amp;nbsp;&lt;STRONG&gt;HttpManager&amp;nbsp;&lt;/STRONG&gt;receiving a send call from a different object, e.g., &lt;STRONG&gt;m_httpManager.SendHttpRequest()&lt;/STRONG&gt;, &amp;amp; queuing it up for processing for the main thread. All&amp;nbsp;&lt;STRONG&gt;HttpRequests&amp;nbsp;&lt;/STRONG&gt;are nodes, as stated above, &amp;amp; require execution from the main thread.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="devenv_lfCLG2YyWE.png" style="width: 400px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/175600i94FBF9C212361020/image-size/medium?v=v2&amp;amp;px=400" role="button" title="devenv_lfCLG2YyWE.png" alt="devenv_lfCLG2YyWE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the&amp;nbsp;&lt;STRONG&gt;HttpManager&amp;nbsp;&lt;/STRONG&gt;processing each queued&amp;nbsp;&lt;STRONG&gt;HttpRequest&amp;nbsp;&lt;/STRONG&gt;that we've added from&amp;nbsp;&lt;STRONG&gt;SendHttpRequest&lt;/STRONG&gt;&amp;nbsp;from a separate thread now on the main thread Godot uses. The&amp;nbsp;&lt;STRONG&gt;AddChild&amp;nbsp;&lt;/STRONG&gt;function is adding the&amp;nbsp;&lt;STRONG&gt;HttpRequest&amp;nbsp;&lt;/STRONG&gt;object to the scene hierarchy in Godot for main thread processing, a requirement for the&amp;nbsp;&lt;STRONG&gt;HttpRequest&amp;nbsp;&lt;/STRONG&gt;objects to dispatch, as they derive from the fundamental Godot object type &lt;STRONG&gt;Node&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="devenv_9GCJO0iPtO.png" style="width: 425px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/175601iA9CE703724B34E7E/image-dimensions/425x484?v=v2" width="425" height="484" role="button" title="devenv_9GCJO0iPtO.png" alt="devenv_9GCJO0iPtO.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The toughest part of this is that this works for every single &lt;STRONG&gt;&lt;A href="https://dev.twitch.tv/docs/api/" target="_self"&gt;Twitch API&lt;/A&gt;&lt;/STRONG&gt;, &amp;amp; subsequently every other &lt;STRONG&gt;Spotify API&lt;/STRONG&gt;, with no issues whatsoever. I can do &lt;STRONG&gt;GETs, POSTs, PUTs, &amp;amp; DELETEs&lt;/STRONG&gt;. The one thing I saw for potential Spotify issues is what's referred to as CORS, which I'm not certain if my application is being blocked from Read/Writing on the Spotify servers &amp;amp; would correlate with the&amp;nbsp;Godot&amp;nbsp;&lt;STRONG&gt;Http Error Code&amp;nbsp;&lt;/STRONG&gt;I'm receiving: &lt;STRONG&gt;&lt;A href="https://docs.godotengine.org/en/stable/classes/class_httprequest.html#class-httprequest:~:text=Result%20RESULT_CONNECTION_ERROR%20%3D%204" target="_self"&gt;RESULT_CONNECTION_ERROR&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;that states "&lt;STRONG&gt;Request failed due to connection (read/write) error.&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm still further investigating this, but this is getting very difficult, very quickly. Postman allowed my POST to queue up a song. I used the same link I retrieved from the above snippet of the&amp;nbsp;&lt;STRONG&gt;OnTrackSearchCompleted&amp;nbsp;&lt;/STRONG&gt;&amp;amp; it worked just fine, along with actually using the built in&amp;nbsp;&lt;STRONG&gt;Try&amp;nbsp;&lt;/STRONG&gt;button on the&amp;nbsp;&lt;STRONG&gt;Add Track to Playback Queue&amp;nbsp;&lt;/STRONG&gt;documentation page. So essentially, I have the correct information for queuing up the track in my application. The lack of&amp;nbsp;&lt;STRONG&gt;Http Response&amp;nbsp;&lt;/STRONG&gt;code &amp;amp; actually being a&amp;nbsp;&lt;STRONG&gt;Godot&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Error Code&amp;nbsp;&lt;/STRONG&gt;signals to me that this application is being blocked by Spotify &amp;amp; not something on my end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it possible I did not do something with registering the application correctly? I have the screenshot above where this application was added to my account, as far as I'm aware.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 19:02:33 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6185121#M14430</guid>
      <dc:creator>SmoothDagger</dc:creator>
      <dc:date>2024-07-10T19:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6185156#M14431</link>
      <description>&lt;P&gt;Thank you for the detailed explanation. This way I can learn Godot from you &lt;span class="lia-unicode-emoji" title=":upside_down_face:"&gt;🙃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 19:07:45 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6185156#M14431</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-07-10T19:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6185166#M14432</link>
      <description>&lt;P&gt;Hi Ximzend,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ha, I'm not sure you want to &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; open source is open sores.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 19:16:18 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6185166#M14432</guid>
      <dc:creator>SmoothDagger</dc:creator>
      <dc:date>2024-07-10T19:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Failed Add Item To Play Queue</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6193259#M14466</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to update this with the solution. At the time of writing this, &lt;STRONG&gt;all versions of Godot for 4.X up to 4.2.2 &amp;amp; 4.3 beta incur an Http Request failure when sending a&amp;nbsp;POST&amp;nbsp;call with 0 bytes of information&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The header of &lt;STRONG&gt;Content-Length&amp;nbsp;&lt;/STRONG&gt;is not appended to the &lt;STRONG&gt;Godot HttpRequest&amp;nbsp;&lt;/STRONG&gt;headers automatically when a &lt;STRONG&gt;POST&amp;nbsp;&lt;/STRONG&gt;is sent to an endpoint with a body length of 0&amp;nbsp;&amp;amp; requires manual insertion in the headers for&amp;nbsp;the built-in &lt;STRONG&gt;Godot HttpRequest&lt;/STRONG&gt; class, e.g., "&lt;STRONG&gt;Content-Length: 0&lt;/STRONG&gt;," in order to properly send.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was not an error from&amp;nbsp;&lt;STRONG&gt;Spotify APIs&lt;/STRONG&gt;, only the&amp;nbsp;&lt;STRONG&gt;Godot Engine&lt;/STRONG&gt;. I am able to successfully make&amp;nbsp;&lt;STRONG&gt;POST&amp;nbsp;&lt;/STRONG&gt;calls now that I've manually added&amp;nbsp;"&lt;STRONG&gt;Content-Length: 0&lt;/STRONG&gt;" to the headers when there is no information being sent up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 13:38:10 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Failed-Add-Item-To-Play-Queue/m-p/6193259#M14466</guid>
      <dc:creator>SmoothDagger</dc:creator>
      <dc:date>2024-07-15T13:38:10Z</dc:date>
    </item>
  </channel>
</rss>

