<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic API v2 java throwing BadResponseException: Bad JSON for uploadSessionFinishBatchCheck in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-java-throwing-BadResponseException-Bad-JSON-for/m-p/167912#M6120</link>
    <description>&lt;P&gt;I'm using the UploadSession feature of the java SDK to upload multiple files at once, and at the end of the process when I call files().uploadSessionFinishBatchCheck, I'm getting an exception:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;com.dropbox.core.BadResponseException: Bad JSON: expected field 'success', but was: 'name'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Full Stack Trace:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;com.dropbox.core.BadResponseException: Bad JSON: expected field 'success', but was: 'name'&lt;BR /&gt; at [Source: buffer(okio.GzipSource@24c42bed).inputStream(); line: 1, column: 63]&lt;BR /&gt; at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:112)&lt;BR /&gt; at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:256)&lt;BR /&gt; at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:97)&lt;BR /&gt; at com.dropbox.core.v2.files.DbxUserFilesRequests.uploadSessionFinishBatchCheck(DbxUserFilesRequests.java:1565)&lt;BR /&gt; at com.dropbox.core.v2.files.DbxUserFilesRequests.uploadSessionFinishBatchCheck(DbxUserFilesRequests.java:1592)&lt;BR /&gt; at com.luckysoft.nmcd.common.utility.DropboxUtility.uploadAndDeleteFiles(DropboxUtility.java:146)&lt;BR /&gt; at com.luckysoft.nmcd.common.tasks.SyncTask.executeUploadQueue(SyncTask.java:480)&lt;BR /&gt; at com.luckysoft.nmcd.common.tasks.SyncTask.doSync(SyncTask.java:248)&lt;BR /&gt; at com.luckysoft.nmcd.common.tasks.SyncTask.run(SyncTask.java:176)&lt;BR /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)&lt;BR /&gt; at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:279)&lt;BR /&gt; at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:152)&lt;BR /&gt; at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:818)&lt;BR /&gt; Caused by: com.fasterxml.jackson.core.JsonParseException: expected field 'success', but was: 'name'&lt;BR /&gt; at [Source: buffer(okio.GzipSource@24c42bed).inputStream(); line: 1, column: 63]&lt;BR /&gt; at com.dropbox.core.stone.StoneSerializer.expectField(StoneSerializer.java:84)&lt;BR /&gt; at com.dropbox.core.v2.files.UploadSessionFinishBatchResultEntry$Serializer.deserialize(UploadSessionFinishBatchResultEntry.java:253)&lt;BR /&gt; at com.dropbox.core.v2.files.UploadSessionFinishBatchResultEntry$Serializer.deserialize(UploadSessionFinishBatchResultEntry.java:205)&lt;BR /&gt; at com.dropbox.core.stone.StoneSerializers$ListSerializer.deserialize(StoneSerializers.java:265)&lt;BR /&gt; at com.dropbox.core.stone.StoneSerializers$ListSerializer.deserialize(StoneSerializers.java:244)&lt;BR /&gt; at com.dropbox.core.v2.files.UploadSessionFinishBatchResult$Serializer.deserialize(UploadSessionFinishBatchResult.java:124)&lt;BR /&gt; at com.dropbox.core.v2.files.UploadSessionFinishBatchJobStatus$Serializer.deserialize(UploadSessionFinishBatchJobStatus.java:236)&lt;BR /&gt; at com.dropbox.core.v2.files.UploadSessionFinishBatchJobStatus$Serializer.deserialize(UploadSessionFinishBatchJobStatus.java:190)&lt;BR /&gt; at com.dropbox.core.stone.StoneSerializer.deserialize(StoneSerializer.java:66)&lt;BR /&gt; at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:104)&lt;BR /&gt; ... 15 more&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using version 2.1.1 of the dropbox java SDK and OkHttp 3.3.1:&lt;/P&gt;
&lt;PRE&gt;compile 'com.dropbox.core:dropbox-core-sdk:2.1.1'&lt;BR /&gt;compile 'com.squareup.okhttp3:okhttp:3.3.1'&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 May 2019 09:29:48 GMT</pubDate>
    <dc:creator>Phil E.1</dc:creator>
    <dc:date>2019-05-29T09:29:48Z</dc:date>
    <item>
      <title>API v2 java throwing BadResponseException: Bad JSON for uploadSessionFinishBatchCheck</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-java-throwing-BadResponseException-Bad-JSON-for/m-p/167912#M6120</link>
      <description>&lt;P&gt;I'm using the UploadSession feature of the java SDK to upload multiple files at once, and at the end of the process when I call files().uploadSessionFinishBatchCheck, I'm getting an exception:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;com.dropbox.core.BadResponseException: Bad JSON: expected field 'success', but was: 'name'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Full Stack Trace:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;com.dropbox.core.BadResponseException: Bad JSON: expected field 'success', but was: 'name'&lt;BR /&gt; at [Source: buffer(okio.GzipSource@24c42bed).inputStream(); line: 1, column: 63]&lt;BR /&gt; at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:112)&lt;BR /&gt; at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:256)&lt;BR /&gt; at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:97)&lt;BR /&gt; at com.dropbox.core.v2.files.DbxUserFilesRequests.uploadSessionFinishBatchCheck(DbxUserFilesRequests.java:1565)&lt;BR /&gt; at com.dropbox.core.v2.files.DbxUserFilesRequests.uploadSessionFinishBatchCheck(DbxUserFilesRequests.java:1592)&lt;BR /&gt; at com.luckysoft.nmcd.common.utility.DropboxUtility.uploadAndDeleteFiles(DropboxUtility.java:146)&lt;BR /&gt; at com.luckysoft.nmcd.common.tasks.SyncTask.executeUploadQueue(SyncTask.java:480)&lt;BR /&gt; at com.luckysoft.nmcd.common.tasks.SyncTask.doSync(SyncTask.java:248)&lt;BR /&gt; at com.luckysoft.nmcd.common.tasks.SyncTask.run(SyncTask.java:176)&lt;BR /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)&lt;BR /&gt; at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:279)&lt;BR /&gt; at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:152)&lt;BR /&gt; at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:818)&lt;BR /&gt; Caused by: com.fasterxml.jackson.core.JsonParseException: expected field 'success', but was: 'name'&lt;BR /&gt; at [Source: buffer(okio.GzipSource@24c42bed).inputStream(); line: 1, column: 63]&lt;BR /&gt; at com.dropbox.core.stone.StoneSerializer.expectField(StoneSerializer.java:84)&lt;BR /&gt; at com.dropbox.core.v2.files.UploadSessionFinishBatchResultEntry$Serializer.deserialize(UploadSessionFinishBatchResultEntry.java:253)&lt;BR /&gt; at com.dropbox.core.v2.files.UploadSessionFinishBatchResultEntry$Serializer.deserialize(UploadSessionFinishBatchResultEntry.java:205)&lt;BR /&gt; at com.dropbox.core.stone.StoneSerializers$ListSerializer.deserialize(StoneSerializers.java:265)&lt;BR /&gt; at com.dropbox.core.stone.StoneSerializers$ListSerializer.deserialize(StoneSerializers.java:244)&lt;BR /&gt; at com.dropbox.core.v2.files.UploadSessionFinishBatchResult$Serializer.deserialize(UploadSessionFinishBatchResult.java:124)&lt;BR /&gt; at com.dropbox.core.v2.files.UploadSessionFinishBatchJobStatus$Serializer.deserialize(UploadSessionFinishBatchJobStatus.java:236)&lt;BR /&gt; at com.dropbox.core.v2.files.UploadSessionFinishBatchJobStatus$Serializer.deserialize(UploadSessionFinishBatchJobStatus.java:190)&lt;BR /&gt; at com.dropbox.core.stone.StoneSerializer.deserialize(StoneSerializer.java:66)&lt;BR /&gt; at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:104)&lt;BR /&gt; ... 15 more&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using version 2.1.1 of the dropbox java SDK and OkHttp 3.3.1:&lt;/P&gt;
&lt;PRE&gt;compile 'com.dropbox.core:dropbox-core-sdk:2.1.1'&lt;BR /&gt;compile 'com.squareup.okhttp3:okhttp:3.3.1'&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:29:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-java-throwing-BadResponseException-Bad-JSON-for/m-p/167912#M6120</guid>
      <dc:creator>Phil E.1</dc:creator>
      <dc:date>2019-05-29T09:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 java throwing BadResponseException: Bad JSON for uploadSessionFinishBatchCheck</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-java-throwing-BadResponseException-Bad-JSON-for/m-p/167913#M6121</link>
      <description>&lt;P&gt;Thanks for the report Phil! We're looking into it.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 02:58:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-java-throwing-BadResponseException-Bad-JSON-for/m-p/167913#M6121</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-09-27T02:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 java throwing BadResponseException: Bad JSON for uploadSessionFinishBatchCheck</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-java-throwing-BadResponseException-Bad-JSON-for/m-p/167914#M6122</link>
      <description>&lt;P&gt;This should be fixed now in &lt;A href="https://github.com/dropbox/dropbox-sdk-java/releases/tag/v2.1.2" target="_blank" rel="nofollow noreferrer"&gt;v2.1.2&lt;/A&gt;. Please update and let me know if you're still seeing any issues.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:05:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-java-throwing-BadResponseException-Bad-JSON-for/m-p/167914#M6122</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-05T09:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 java throwing BadResponseException: Bad JSON for uploadSessionFinishBatchCheck</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-java-throwing-BadResponseException-Bad-JSON-for/m-p/167915#M6123</link>
      <description>&lt;P&gt;Version 2.1.2 works great now - thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 04:57:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-java-throwing-BadResponseException-Bad-JSON-for/m-p/167915#M6123</guid>
      <dc:creator>Phil E.1</dc:creator>
      <dc:date>2016-10-06T04:57:37Z</dc:date>
    </item>
  </channel>
</rss>

