We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
hbtest
10 years agoNew member | Level 1
Bad gateway Error
I'm using CPP Rest SDK (https://casablanca.codeplex.com/)
I'm trying to use chunked upload feature and it's always 502 Error: Bad gateway in response.
My actions:
1) I do initial request to /2/...
Greg-DB
Dropbox Community Moderator
10 years agoOh, never mind, I think I see the issue. It looks like you're missing the quotes around the session_id in the Dropbox-API-Arg header, as well a the ending "}". That's likely corrupting the HTTP request, causing the server to fail back with the HTML page.
I recommend using a JSON library to build these strings for you, instead of doing so manually.
About Dropbox API Support & Feedback
Find help with the Dropbox API from 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!