cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

503 Errors depending on HTTP client

503 Errors depending on HTTP client

tlqip1
New member | Level 2

When using the endpoint: https://api.dropboxapi.com/2/files/list_folder via curl, I get a valid response.

 

If I make exactly the same request using Tesla (https://github.com/teamon/tesla) I get a 503 response returned by the server.

 

This is using exactly the same access token and parameters on the same machine over the same network request. 

 

An example "x-dropbox-request-id" is "4141da5a0fcb4b2d8192bc13d2d56a5b" if this is helpful for debugging.

 

Can you see any reason for this?

 

 

2 Replies 2

tlqip1
New member | Level 2

If helpful, the error message returned in the body of the request is: "upstream connect error or disconnect/reset before headers. reset reason: connection termination" and the problem has been ongoing for about a day now

Greg-DB
Dropbox Staff

Thanks for the report. I wouldn't expect the same exact request to produce different results like this just based on using different client, but it's possible that the different clients are issuing the requests in slightly different ways perhaps, resulting in the issue. Are you able to print out the full raw HTTP request and response for each client? E.g., for curl, you can use the "-v" option to show most of this. I can't speak to what debug options are available for the other client though. Seeing the rest of that information may be helpful. Please redact the access token though.

 

In addition to that, can you share several more "x-dropbox-request-id" response header values for these 503 errors? (Due to some implementation details a single one isn't always sufficient for investigation.)

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    tlqip1 New member | Level 2
What do Dropbox user levels mean?