We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

AndreyStrukov's avatar
AndreyStrukov
Helpful | Level 5
6 years ago

Request body could not decode input as JSON

Hello! The follow code (qt c++) QUrl url; url.setScheme("https"); url.setHost("api.dropboxapi.com"); url.setPath("/2/file_requests/list_v2"); QUrlQuery params; params.addQueryI...
  • Здравко's avatar
    6 years ago

    Hi AndreyStrukov,

    Can you clarify, what you really ask? :thinking: In the error message is clearly stated: "could not decode input as JSON"!

    If you take a look on list_v2 documentation, can be seen that parameters have to be in JSON format. Where you encode your parameter ("limit") in JSON? Instead, you use 'QUrlQuery' class, which functionality mimics classic HTML form encoding (not JSON)! :wink:

    Hope this gives some direction.