cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in learning how media industry leaders use Dropbox Replay? Register for our webinar here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

Error Occurred Unexpected character encountered while parsing value: <.

Error Occurred Unexpected character encountered while parsing value: <.

indigo-cloud
Helpful | Level 5
Go to solution

We are using the API to connect to customer accounts and retrieve files waiting in Dropbox to be uploaded to a CRM system.

 

We are getting an error when we are trying to get a list of items in a give folder. The error is "Error Occurred Unexpected character encountered while parsing value: <."

 

We have established this is happening because instead of getting a list of files in JSON format, we are getting an error, in HTML format, as sown below:

 

<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Dropbox - 504</title>
<link href="https://cfl.dropboxstatic.com/static/metaserver/static/css/error.css" rel="stylesheet" type="text/cs...
https://cfl.dropboxstatic.com/static/images/favicon.ico"/>
</head>
<body>
<div class="figure">
<img src=...
https://assets.dropbox.com/www/en-us/illustrations/spot/target-miss.svg" alt="Error: 504"/>
</div>
<di...
https://status.dropbox.com">Status Page</a> to see if there is a known incident, our <a href="https://www.dropbox.com/help">Help Center</a> and <a href="https://forums.dropbox.com">forums</a> for help, or head back to <a href="https://www.dropbox.com/home">home</a>.
</div>

 

</body>
</html>

 

So, now we can handle this error and alert the user. 

Recently, it is happening on every single call to a specific folder. There are many files in that folder, and we are wondering if this is a timeout or some sort of rate throttling.

Please can you advise.

 

This is an example of a response header we received today:

x-dropbox-request-id = "c22bbf15af53476f91e6ca51aa945773"

 

IP: 185.234.235.131

 

 

 

1 Accepted Solution

Accepted Solutions

indigo-cloud
Helpful | Level 5
Go to solution

Thanks, I did that and support has now contacted me.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

Please open an API ticket here and share a cursor value that results in this error so we can look into this specifically for you. Thanks in advance!

indigo-cloud
Helpful | Level 5
Go to solution

Thanks, I did that and support has now contacted me.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    indigo-cloud Helpful | Level 5
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?