We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
SafetyLok
6 years agoExplorer | Level 3
HTTP 400 Bad Request - Embedded Device
Hi,
Working on an embedded device, trying to add a file to Dropbox and put some data into it.
The operation succeeds, and my file + correct data is on dropbox. However I get a HTTP/1.1 40...
Greg-DB
Dropbox Community Moderator
6 years agoThanks for the additional information, and clarifying that you were referring to appending to an upload session.
Anyway, regardless of whether you're using the single /2/files/upload endpoint, or the upload sessions endpoints, the Dropbox API should only be sending one response per request. (I also haven't heard any other reports like this.)
Unfortunately, Dropbox doesn't offer a way to retrieve error logs for an app.
Looking at the actual headers/content of the second response you showed in your first message, it looks like that may be the generic 400 error that the Dropbox sends when a request is malformed and couldn't be understood. (It's a generic HTML error page, not specific to the API.) That does seem to support the idea that the client is sending some other request, perhaps a corrupted or partial request, that can't be interpreted as a valid API call. For example, perhaps the client is sending more data over the socket after the actual intended HTTP message for the API call, and that extra data is not properly formed as an HTTP message, resulting in the error.
SafetyLok
6 years agoExplorer | Level 3
Hi,
We'll put this down to something wrong with the radio module.
We have tried two different vendors radio modules and this problem does not exist.
I'll call this case closed.
Thanks.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!