You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
swong
6 years agoExplorer | Level 3
BadResponseException: Bad JSON
Hi there, I've recently ran into an issue with Dropbox API (Java dropbox-sdk-java v2.1.1) that started as early as Mar 8. It happens when trying to create a shared link when one has already been cre...
- 6 years ago
Thanks for the report! We recently made an update to the /2/sharing/create_shared_link_with_settings endpoint (which is what createSharedLinkWithSettings calls). It wasn't a breaking change, but it looks like a bug in older versions of the Java SDK can cause the SDK to not properly handle it.
Please update to the latest version of the SDK (currently v3.0.11) and try again.
Greg-DB
Dropbox Staff
Thanks for the report! We recently made an update to the /2/sharing/create_shared_link_with_settings endpoint (which is what createSharedLinkWithSettings calls). It wasn't a breaking change, but it looks like a bug in older versions of the Java SDK can cause the SDK to not properly handle it.
Please update to the latest version of the SDK (currently v3.0.11) and try again.
swong
6 years agoExplorer | Level 3
Thanks for the quick reply. I'll give it a go on the new version of the SDK. In the meantime, can I safely assume that I'll have to change my usage pattern with the existing version to get around this issue?
Thanks again.
- Greg-DB6 years agoDropbox Staff
Yes, if you want to continue using v2.1.1 for now, you'll need to update your code, at least to handle that BadResponseException.
The upgrade from v2.1.1 to v3.* shouldn't be too significant though. The only breaking changes should be the two mentioned here: https://github.com/dropbox/dropbox-sdk-java/releases/tag/3.0.0
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,884 PostsLatest Activity: 4 hours agoIf 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 or Facebook.
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!