<?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 Re: Intermittent 400 errors with message &amp;quot;could not decode input as JSON&amp;quot; in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Intermittent-400-errors-with-message-quot-could-not-decode-input/m-p/389169#M21566</link>
    <description>&lt;P&gt;Thanks for the report! It looks like this may already be fixed in the latest version of the Java SDK, currently v3.1.3. Can you update to that and let me know if you're still seeing the issue with that?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 16:41:07 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-01-13T16:41:07Z</dc:date>
    <item>
      <title>Intermittent 400 errors with message "could not decode input as JSON"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Intermittent-400-errors-with-message-quot-could-not-decode-input/m-p/388793#M21560</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I'm using Dropbox Java SDK v3.0.11 and recently have been encountering intermittent errors in some files v2 APIs. They are 400 errors with the following message:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;com.dropbox.core.BadRequestException: Error in call to API function "files/delete": request body: could not decode input as JSON&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I've seen it happen in the following places in com.dropbox.core.v2.files:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;DbxUserFilesRequests.delete (files/delete)&lt;/LI&gt;
&lt;LI&gt;DbxUserFilesRequests.getMetadata (files/get_metadata)&lt;/LI&gt;
&lt;LI&gt;DbxUserFilesRequests.listFolder (files/list_folder)&lt;/LI&gt;
&lt;LI&gt;DbxUserFilesRequests.createFolder (files/create_folder)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This started happening on Jan 8. I debugged and examined the request body thinking that the body is malformed as the error message suggests but it's fine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{"path":"&amp;lt;path&amp;gt;","include_media_info":false,"include_deleted":false,"include_has_explicit_shared_members":false}&lt;/PRE&gt;
&lt;P&gt;I stripped the path but there's no bad characters in there. An example request ID that failed is &lt;STRONG&gt;d8ecc6d0675671b91b7385ffd32c5620&lt;/STRONG&gt;. Any ideas what might be causing this error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 19:07:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Intermittent-400-errors-with-message-quot-could-not-decode-input/m-p/388793#M21560</guid>
      <dc:creator>swong</dc:creator>
      <dc:date>2020-01-13T19:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent 400 errors with message "could not decode input as JSON"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Intermittent-400-errors-with-message-quot-could-not-decode-input/m-p/389169#M21566</link>
      <description>&lt;P&gt;Thanks for the report! It looks like this may already be fixed in the latest version of the Java SDK, currently v3.1.3. Can you update to that and let me know if you're still seeing the issue with that?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 16:41:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Intermittent-400-errors-with-message-quot-could-not-decode-input/m-p/389169#M21566</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-13T16:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent 400 errors with message "could not decode input as JSON"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Intermittent-400-errors-with-message-quot-could-not-decode-input/m-p/389253#M21574</link>
      <description>&lt;P&gt;Thanks for the heads up. I'll upgrade the library and report back what I find&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 21:50:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Intermittent-400-errors-with-message-quot-could-not-decode-input/m-p/389253#M21574</guid>
      <dc:creator>swong</dc:creator>
      <dc:date>2020-01-13T21:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent 400 errors with message "could not decode input as JSON"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Intermittent-400-errors-with-message-quot-could-not-decode-input/m-p/389459#M21577</link>
      <description>I’m not getting any more errors after upgrading the library. Thanks so much!</description>
      <pubDate>Tue, 14 Jan 2020 16:25:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Intermittent-400-errors-with-message-quot-could-not-decode-input/m-p/389459#M21577</guid>
      <dc:creator>swong</dc:creator>
      <dc:date>2020-01-14T16:25:24Z</dc:date>
    </item>
  </channel>
</rss>

