Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
DboxDeveloper
9 years agoExplorer | Level 3
Objective C batchUploadFiles gives error: "missing required field 'session_id'" or "Garbage at end."
Hi,
I am getting the error
DropboxBadInputError[{
ErrorContent = "Error in call to API function \"files/upload_session/finish_batch\": request body: entries.cursor: missing required ...
- 9 years agoThanks! This is very helpful. I'm able to reproduce this now. We're looking into it.
We have a rough idea of what's occurring, though not exactly why it's occurring yet. One thing that may be relevant though is that for some calls, you're using `setProgressBlock` and checking `if (totalBytesUploaded == totalBytesExpectedToUploaded` to see if the operation is complete. You should always use the response block (e.g., `setResponseBlock` for most calls, or passed as a parameter for `batchUploadFiles`) to know when the operation completed and then carry on with your next steps.
Please try making that change and let me know if it does or doesn't help. Thanks!
Greg-DB
Dropbox Community Moderator
9 years agoI just followed your instructions and was able to run your supplied code, but I didn't get either of these error messages.
There must be some other factor, so can you perhaps plug it in to a sample project that reproduces the issues for you and share that?
Also, in case it matters, what version of Xcode are you using?
There must be some other factor, so can you perhaps plug it in to a sample project that reproduces the issues for you and share that?
Also, in case it matters, what version of Xcode are you using?
DboxDeveloper
9 years agoExplorer | Level 3
Ok i'll test it on a sample project.
Have you tried multiple times , it sometimes will succeed but most of the time it will not.
Xcode Version 8.3.3 (8E3004b)
Have you tried multiple times , it sometimes will succeed but most of the time it will not.
Xcode Version 8.3.3 (8E3004b)
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!