<?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 Sporadic 503 errors using the BarRaider Spotify plugin in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Sporadic-503-errors-using-the-BarRaider-Spotify-plugin/m-p/5464667#M7194</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;United Kingdom&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Streamdeck XL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 10&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 have been using the BarRaider Spotify plugin for a few months on my StreamDeck XL without any problems. However, since sometime in the last week or so, the plugin logs are showing sporadic 503 Service Unavailable errors when trying to refresh the authentication tokens.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to the nature of how the plugin is implemented, 3 failures to refresh the authentication tokens result in the plugin deleting it's local copy of the client ID/secret, meaning that the plugin has to be reconfigured every time it receives a HTTP 503 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logs are looking like this:&lt;/P&gt;&lt;PRE&gt;2022-11-30 12:18:55.2191|WARN|com.barraider.spotify|35|[35] SpotifyQuery returned with StatusCode: ServiceUnavailable Command: me/player Error: {&lt;BR /&gt;  "error": {&lt;BR /&gt;    "status": 503,&lt;BR /&gt;    "message": "Service unavailable"&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;2022-11-30 12:18:55.2191|WARN|com.barraider.spotify|35|PlaybackInfoBackgroundWorker failed with response: ServiceUnavailable - Retry: 3 - Reason: Service Unavailable&lt;BR /&gt;2022-11-30 12:19:27.2667|DEBUG|com.barraider.spotify|13|[13] SpotifyQuery: Total Playback Requests: 57000&lt;BR /&gt;2022-11-30 12:20:21.4949|WARN|com.barraider.spotify|43|[43] SpotifyQueryInternal returned with StatusCode: Unauthorized. Token: [BQC_eOg]&lt;BR /&gt;2022-11-30 12:20:21.4949|INFO|com.barraider.spotify|43|[43] RefreshTokens Called&lt;BR /&gt;2022-11-30 12:20:21.4949|WARN|com.barraider.spotify|4|[4] RefreshTokens: RefreshFailed is true, not attempting to refresh&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other users have been reporting similar issues in the BarRaider discord chats, but for some people it just seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, @spotify, what's wrong with your API? Please fix!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 12:53:10 GMT</pubDate>
    <dc:creator>binabik</dc:creator>
    <dc:date>2022-11-30T12:53:10Z</dc:date>
    <item>
      <title>Sporadic 503 errors using the BarRaider Spotify plugin</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Sporadic-503-errors-using-the-BarRaider-Spotify-plugin/m-p/5464667#M7194</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;United Kingdom&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Streamdeck XL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Windows 10&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 have been using the BarRaider Spotify plugin for a few months on my StreamDeck XL without any problems. However, since sometime in the last week or so, the plugin logs are showing sporadic 503 Service Unavailable errors when trying to refresh the authentication tokens.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to the nature of how the plugin is implemented, 3 failures to refresh the authentication tokens result in the plugin deleting it's local copy of the client ID/secret, meaning that the plugin has to be reconfigured every time it receives a HTTP 503 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logs are looking like this:&lt;/P&gt;&lt;PRE&gt;2022-11-30 12:18:55.2191|WARN|com.barraider.spotify|35|[35] SpotifyQuery returned with StatusCode: ServiceUnavailable Command: me/player Error: {&lt;BR /&gt;  "error": {&lt;BR /&gt;    "status": 503,&lt;BR /&gt;    "message": "Service unavailable"&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;2022-11-30 12:18:55.2191|WARN|com.barraider.spotify|35|PlaybackInfoBackgroundWorker failed with response: ServiceUnavailable - Retry: 3 - Reason: Service Unavailable&lt;BR /&gt;2022-11-30 12:19:27.2667|DEBUG|com.barraider.spotify|13|[13] SpotifyQuery: Total Playback Requests: 57000&lt;BR /&gt;2022-11-30 12:20:21.4949|WARN|com.barraider.spotify|43|[43] SpotifyQueryInternal returned with StatusCode: Unauthorized. Token: [BQC_eOg]&lt;BR /&gt;2022-11-30 12:20:21.4949|INFO|com.barraider.spotify|43|[43] RefreshTokens Called&lt;BR /&gt;2022-11-30 12:20:21.4949|WARN|com.barraider.spotify|4|[4] RefreshTokens: RefreshFailed is true, not attempting to refresh&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other users have been reporting similar issues in the BarRaider discord chats, but for some people it just seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, @spotify, what's wrong with your API? Please fix!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 12:53:10 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Sporadic-503-errors-using-the-BarRaider-Spotify-plugin/m-p/5464667#M7194</guid>
      <dc:creator>binabik</dc:creator>
      <dc:date>2022-11-30T12:53:10Z</dc:date>
    </item>
  </channel>
</rss>

