<?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: Service Unavailable 503 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/687134#M30895</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1707696"&gt;@ram4444&lt;/a&gt; Thanks for following up and sharing that, and apologies for the delay. (It appears your latest message may have initially been caught in a spam filter.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I see your client is sending a "TE" header in the request, but no "Connection" header. According to &lt;A href="https://www.rfc-editor.org/rfc/rfc9110#field.te" target="_blank"&gt;the specification&lt;/A&gt;, the corresponding "Connection" header value is required when setting the "TE" header. I am able to reproduce the error you see when setting "TE" and not "Connection", and I am able to resolve the error by setting both "TE" and "Connection" (specifically, "Connection: TE"). If you are not able to remove the "TE" header your client is setting, you should try to have it set "Connection: TE" as well.&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 13:36:46 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-05-26T13:36:46Z</dc:date>
    <item>
      <title>Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686373#M30876</link>
      <description>&lt;P&gt;&lt;A target="_blank" rel="noopener"&gt;https://api.dropbox.com/oauth2/token?grant_type=refresh_token&amp;amp;refresh_token=&amp;lt;REFRESH_TOKEN&amp;gt;&amp;amp;client_id=&amp;lt;MYAPPID&amp;gt;&amp;amp;client_secret=&amp;lt;MYSECRET&amp;gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I http POST to the above URL for refreshing Access Token in my code, a 503 service unavailable is returned.&lt;/P&gt;
&lt;P&gt;However there is no any issue when I do the same thing in POSTMAN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any body ever had this issue before? Am I missing something in the HTTP header/body?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 20:16:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686373#M30876</guid>
      <dc:creator>ram4444</dc:creator>
      <dc:date>2023-05-31T20:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686387#M30877</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1707696"&gt;@ram4444&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;...&lt;/P&gt;&lt;P&gt;When I http &lt;FONT color="#FF0000"&gt;POST&lt;/FONT&gt; to the above URL for ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1707696"&gt;@ram4444&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;How exactly have you posted the above URL?&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; The URL looks like a GET URL! What did you post in the body of your POST request? 🧐 Take in mind that only changing the method name is NOT enough (in spite error check of Dropbox API seems compromised). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 17:43:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686387#M30877</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-05-23T17:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686388#M30878</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1707696"&gt;@ram4444&lt;/a&gt; Can you share the full HTTP request (headers and body, if any) that results in a 503 so we can look into it? Be sure to redact your refresh token, app key, and app secret values though. Please also share the full response (headers and body, if any) for reference. Thanks in advance! &lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 17:56:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686388#M30878</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-23T17:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686395#M30879</link>
      <description>&lt;P&gt;The request contains &lt;STRONG&gt;only the parameters&lt;/STRONG&gt; but no header/body specified&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;url = &lt;SPAN&gt;"&lt;A href="https://api.dropbox.com/oauth2/token?grant_type=refresh_token&amp;amp;refresh_token=" target="_blank"&gt;https://api.dropbox.com/oauth2/token?grant_type=refresh_token&amp;amp;refresh_token=&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;longTimeRefreshToken&lt;SPAN&gt;&amp;amp;client_id=&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;clientId&lt;SPAN&gt;&amp;amp;client_secret=&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;clientSecret&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;My code is Kotlin and I am using Fuel as the HTTP Library (which is on top of OKHTTP)&lt;/P&gt;&lt;P&gt;I tried in POSTMAN and the result is normal&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ram4444_1-1684865119464.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/37977iF709782A8BA9530E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ram4444_1-1684865119464.png" alt="ram4444_1-1684865119464.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 18:06:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686395#M30879</guid>
      <dc:creator>ram4444</dc:creator>
      <dc:date>2023-05-23T18:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686401#M30880</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1707696"&gt;@ram4444&lt;/a&gt; I understand you're including the parameters on the URL itself, but the actual HTTP request issued by your client would involve some start line and header(s) at least. So that we can investigate the request that causes that error, please print out and share the actual HTTP request itself. You may need to refer to the documentation for your client for information on how to enable more verbose output to show the request.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 18:39:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686401#M30880</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-23T18:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686464#M30881</link>
      <description>&lt;P&gt;Below is what I obtain when I toString() the POST request.&lt;/P&gt;&lt;P&gt;I include headers same as what they are in POSTMAN (as they are generated automatically by POSTMAN) as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; POST &lt;A href="https://api.dropbox.com/oauth2/token?grant_type=refresh_token&amp;amp;refresh_token=REDACTED&amp;amp;client_id=REDACTED&amp;amp;client_secret=REDACTED" target="_blank" rel="noopener"&gt;https://api.dropbox.com/oauth2/token?grant_type=refresh_token&amp;amp;refresh_token=REDACTED&amp;amp;client_id=REDACTED&amp;amp;client_secret=REDACTED&lt;/A&gt;&lt;BR /&gt;Body : (empty)&lt;BR /&gt;Headers : (6)&lt;BR /&gt;Connection : keep-alive&lt;BR /&gt;User-Agent : PostmanRuntime/7.32.2&lt;BR /&gt;Accept : */*&lt;BR /&gt;Accept-Encoding : gzip, deflate, br&lt;BR /&gt;Cookie : locale=en; t=RzvutB7WDW79g72wIY13TQgy&lt;BR /&gt;Content-Length : 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, no matter these headers are/not put in my code or not, the result status is still 503.&lt;/P&gt;&lt;P&gt;So I believe that there are something blocked on the API side to prevent my POST sending from JVM only but not the POSTMAN&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 20:23:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686464#M30881</guid>
      <dc:creator>ram4444</dc:creator>
      <dc:date>2023-05-24T20:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686502#M30882</link>
      <description>&lt;P&gt;Hi again &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1707696"&gt;@ram4444&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you have troubles with dumping your application communication, there is still a workaround that can help you figure out what exactly flows on the wire. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; It's simple; just create a pseudo server that just dumps everything incoming using netcat and do redirect your failing call temporary to this server to see what's going on. For instance such a "server" can be created with following command running in a terminal:&lt;/P&gt;&lt;PRE&gt;netcat -s localhost -p 8080 -l&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Next, temporary in your application, replace everywhere you're using something like:&lt;/P&gt;&lt;PRE&gt; &lt;STRONG&gt;https://api.dropbox.com&lt;/STRONG&gt;/oauth2/token?grant_type=...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;... to something like following:&lt;/P&gt;&lt;PRE&gt; &lt;STRONG&gt;http://localhost:8080&lt;/STRONG&gt;/oauth2/token?grant_type=...&lt;/PRE&gt;&lt;P&gt;Recompile and prepare your application for run. Next run the pseudoserver above and your application immediately after that. 🙋 Now you should be able see exactly what Dropbox server "api.dropbox.com" sees in your terminal and evaluate what's wrong. You can do the same experiment with your POSTMAN and see what's different. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: The "toString()" method result is rarely usable to debug such thing especially when the type that would be represent as a string doesn't impose such use case (debug). For instance your first line cannot be correct; neither host nor scheme can be there, but it's rather stringification implementation details, not mandatory a direct error! So cannot be used for conclusion or diagnostic...&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 02:12:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686502#M30882</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-05-24T02:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686616#M30884</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1707696"&gt;@ram4444&lt;/a&gt; As&amp;nbsp;Здравко said, your output may not actually be representative of the real request. I tried replicating the request in curl using the header values you supplied, but the call succeeded for me. That may indicate that the output in fact does not sufficiently show what the actual request consists of.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being the case, you may want to use the technique that Здравко helpfully provided to try to see what the difference is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, they've been redacted from the post, but I see that you originally included your refresh token, app key, and app secret in your most recent message. Since those were publicly posted for a time though, I suggest revoking the refresh token. You can do so by calling &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_blank"&gt;/2/auth/token/revoke&lt;/A&gt; using a short-lived access token for that refresh token, which would revoke that refresh token as well as any/all short-lived access tokens for that refresh token. You can use &lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#auth_token/revoke" target="_blank"&gt;the API v2 Explorer&lt;/A&gt; to perform the call. You'd then need to re-authorize the app to get a new refresh token. If the app is in development mode, you can also delete and recreate the app itself from &lt;A href="https://www.dropbox.com/developers/apps" target="_self"&gt;the App Console&lt;/A&gt; to invalidate the app key/secret; that would also disable any/all access tokens/refresh tokens for the app as well, and you'd need to update the app to use the new key/secret.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:09:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686616#M30884</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-24T14:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686643#M30888</link>
      <description>&lt;P&gt;Thanks for Greg-DB and&amp;nbsp;&lt;SPAN&gt;Здравко&lt;/SPAN&gt; advices. I have located the problem is the Header TE generated from FUEL itself. After putting it to the POSTMAN request I can replicate the status code 503&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User-Agent: FUEL&lt;BR /&gt;Accept: */*&lt;BR /&gt;Accept-Encoding: gzip, deflate, br&lt;BR /&gt;Cookie: locale=en; t=RzvutB7WDW79g72wIY13TQgy&lt;BR /&gt;Content-Type: text/plain; charset=UTF-8&lt;BR /&gt;&lt;STRONG&gt;TE: gzip, deflate; q=0.5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I still cannot find any way to remove this header from the request of my code, may I know why the server will handle it and cause error (so that it can be simply ignored when receive?)&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 17:35:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/686643#M30888</guid>
      <dc:creator>ram4444</dc:creator>
      <dc:date>2023-05-24T17:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/687134#M30895</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1707696"&gt;@ram4444&lt;/a&gt; Thanks for following up and sharing that, and apologies for the delay. (It appears your latest message may have initially been caught in a spam filter.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I see your client is sending a "TE" header in the request, but no "Connection" header. According to &lt;A href="https://www.rfc-editor.org/rfc/rfc9110#field.te" target="_blank"&gt;the specification&lt;/A&gt;, the corresponding "Connection" header value is required when setting the "TE" header. I am able to reproduce the error you see when setting "TE" and not "Connection", and I am able to resolve the error by setting both "TE" and "Connection" (specifically, "Connection: TE"). If you are not able to remove the "TE" header your client is setting, you should try to have it set "Connection: TE" as well.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 13:36:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/687134#M30895</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-26T13:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Service Unavailable 503</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/687155#M30896</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;Great thanks for your advice and now I can send out the refresh token request.&lt;/P&gt;&lt;P&gt;&amp;amp; &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;Thanks for your recommendation in looking into the full HTTP request&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 14:47:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Service-Unavailable-503/m-p/687155#M30896</guid>
      <dc:creator>ram4444</dc:creator>
      <dc:date>2023-05-26T14:47:02Z</dc:date>
    </item>
  </channel>
</rss>

