cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Discuss Dropbox Developer & API

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

while uploading file more than 10-12 MB getting error Dropbox Exception BadResponse

while uploading file more than 10-12 MB getting error Dropbox Exception BadResponse

WWAIT
New member | Level 2

Hi 

We are facing an error with Dropbox upload API for more than 10 MB files, if the upload is less than 10 mb its getting uploaded.   we are using .

 PHP version : PHP 5.6.40 
PHP SDK version: 1.1.6

all of a sudden this has stopped working for the last 1 week. 

give below error message: 

 

Fatal error: Uncaught exception 'Dropbox\Exception_BadResponse' with message 'Got bad JSON from server:

<!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 - 400</title> <link href="https://cfl.dropboxstatic.com/static/metaserver/static/css/error.css" rel="stylesheet" type="text/css"/> <link rel="shortcut icon" href="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: 400"/> </div> <div id="errorbox"> <h1>Error (400)</h1>Something went wrong. Don't worry, your files are still safe and the Dropbox team has been notified. Check out our <a href="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 < in smd_newtech/dropbox_new/Dropbox/RequestUtil.php on line 266

 

1 Reply 1

Здравко
Legendary | Level 20

Hi @WWAIT,

There should be something else changed on your end. I just tried and no issue with file bigger than 10MB; it's the same like for smaller files. Does by any chance something else change together with the size in the HTTP request - something you have ignored? You may try binary dump of your request and see what's there and what's wrong. If you cannot still figure what's wrong, post the resulted dump here (mask the access token in use or invalidate it in advance).

Hope this gives direction.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?