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
Jose L.8
4 years agoExplorer | Level 3
BadResponseException: Bad JSON: again
Platform: Java
SDK/library: dropbox-sdk-java 4.0.1 (latest)
SDK/library: dropbox-sdk-java 4.0.1 (latest)
We are getting errors parsing team log contents again.
Related ticket: https://www.dropbox.com/support/ticket/14007745
Request id: 2c56a267b7c14da5be4c49506320e667
Request id: 39fddcc390e14431ad0fd1c3adfc9116
Request id: 56c6798cb91246f4ac69d81eeef8dd37
Caused by:
com.dropbox.core.BadResponseException: Bad JSON: expected end of object value. at [Source: (ByteArrayInputStream); line: 1, column: 330017] at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:158) at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:330) at com.dropbox.core.v2.DbxRawClientV2.executeRetriableWithRefresh(DbxRawClientV2.java:351) at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:137) at com.dropbox.core.v2.teamlog.DbxTeamTeamLogRequests.getEvents(DbxTeamTeamLogRequests.java:47) at com.dropbox.core.v2.teamlog.GetEventsBuilder.start(GetEventsBuilder.java:123)
...
at com.dropbox.core.stone.StoneSerializer.expectEndObject(StoneSerializer.java:98) at com.dropbox.core.v2.teamlog.EventDetails$Serializer.deserialize(EventDetails.java:35442) at com.dropbox.core.v2.teamlog.TeamEvent$Serializer.deserialize(TeamEvent.java:557)
- Greg-DBDropbox Staff
Thanks for the report! We'll investigate and I'll follow up here once I have an update.
- Jose L.8Explorer | Level 3
Hi,
opening this again as error is back.
Library is updated to v 5.0.0
Caused by: com.dropbox.core.BadResponseException: Bad JSON: expected object value. at [Source: (ByteArrayInputStream); line: 1, column: 360868] at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:158) at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:330) at com.dropbox.core.v2.DbxRawClientV2.executeRetriableWithRefresh(DbxRawClientV2.java:351) at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:137) at com.dropbox.core.v2.teamlog.DbxTeamTeamLogRequests.getEventsContinue(DbxTeamTeamLogRequests.java:121)
Some request ids to look further into:
162d6ee34b2640d59343e189900cf775
1b20d77ecb054906b5528c50c14efd26
a13763fe82c249c8ac7338829fd7cf40
4bdf227c47fc4b1ba4440b2c2aecc317
Also can you confirm that 5.0.0 is last version to support Java 8? If so, these changes should go to a 5.0.x
- Greg-DBDropbox Staff
Thanks for the report. I'll raise this with the team again.
And yes, v5.0.0 was the last version before v5.1.0, where Java source and target compatibility was bumped to 11. The team applies updates to the SDK to the most recent version, but I'll pass this along as a request for support on older versions as well. I can't make any promises regarding that myself though.
- Greg-DBDropbox Staff
This issue is fixed in the latest version of the Java SDK, which is currently v5.3.0.
About Discuss Dropbox Developer & API
Make connections with other developers
797 PostsLatest Activity: 3 days 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!