We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
H. Reo
11 years agoNew member | Level 1
SwiftyDropbox API Error
Hello!
I'm trying out SwiftyDropbox
=> https://blogs.dropbox.com/developers/2015/05/try-out-swiftydropbox-the-new-swift-sdk-for-dropbox-api-v2/
I can get user's name (with usersGetCurrentAc...
Michael K.57
10 years agoNew member | Level 1
UPDATE:
I applied the fix that was suggested in "#48" by Leshkoapps and it solved the problem. I'm not sure why the version that I installed via cocoapods didn't include this change, but I'm a bit of a noob to cocoapods and programming in general, so it was likely a user mistake, but in case someone else makes the same one...
Hi,
I'm getting this error as well, using nothing more than the sample code in the tutorial to get up and running. It does seem to be writing and reading the "hello.txt" file, but I get this:
*** Get current account ***
[request-id 2d1753ef779bb8bb8631124239e00f4e] Bad Input: Error in call to API function "users/get_current_account": request body: could not decode input as JSON
*** List folder ***
[request-id 4a7934fec1ed93d70f3f049913ee9280] Bad Input: Error in call to API function "files/list_folder": request body: could not decode input as JSON
*** Upload file ****
Uploaded file name: hello.txt
Uploaded file revision: 242d57873
*** Get file metadata ***
[request-id 82d1fb27eee8bccceb2f749b46b614b0] Bad Input: Error in call to API function "files/get_metadata": request body: could not decode input as JSON
*** Download file ***
Downloaded file name: hello.txt
Downloaded file url: file:///var/mobile/Containers/Data/Application/68429947-9A4F-4C67-89A0-EE5CCBB02BC7/Documents/C1E5D3F0-2A11-499D-A98D-9F3EACCE69FA-download.txt
Downloaded file data: Optional(<48656c6c 6f21>)
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!