Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Jeff1's avatar
Jeff1
New member | Level 1
9 years ago

API could not decode input as JSON

LS,

I'm developing a mobile app with Xamarin and its trivial that Dropbox gets integrated.

Ref: https://blogs.dropbox.com/developers/2015/04/a-preview-of-the-new-dropbox-api-v2/

Now "users/get_current_account" works like a charm, but if i try "/files/list_folder" with "{\"path\": \"\"}" as body, the response i get is "Error in call to API function "files/list_folder": request body: could not decode input as JSON", whilst using fiddler.

Am i overlooking something (obvious)?

Can someone give me more info on this?

 

Screenshots:
200 https://img42.com/wA7gP
400 https://img42.com/ufrLJ

 

1 Reply

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    Hi Jeff, a few things first:

    - You're calling the beta /2-beta-2/ route. You should update to the stable /2/ route.

    - I can't see the request body view in the second screenshot, can you share one that shows the raw body being sent up? 

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!