<?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: BadResponseException: Bad JSON in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/BadResponseException-Bad-JSON/m-p/333302#M19450</link>
    <description>&lt;P&gt;Thanks for the report! We recently made an update to the /2/sharing/create_shared_link_with_settings endpoint (which is what&amp;nbsp;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.&lt;/P&gt;
&lt;P&gt;Please update to the latest version of the SDK (currently&amp;nbsp;v3.0.11) and try again.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 20:04:43 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-03-11T20:04:43Z</dc:date>
    <item>
      <title>BadResponseException: Bad JSON</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/BadResponseException-Bad-JSON/m-p/333244#M19444</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;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 created -- normally this produces a CreateSharedLinkWithSettingsErrorException, but now, a BadResponseException is returned. I'm creating the link using:&lt;/P&gt;&lt;PRE&gt;DbxClientV2.sharing().createSharedLinkWithSettings().getUrl()&lt;/PRE&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;PRE&gt;com.dropbox.core.BadResponseException: Bad JSON: expected end of object value. at [Source: (sun.net.www.protocol.http.HttpURLConnection$HttpInputStream); line: 1, column: 139]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Any ideas what might be causing the issue or what I can do to fix the problem?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:07:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/BadResponseException-Bad-JSON/m-p/333244#M19444</guid>
      <dc:creator>swong</dc:creator>
      <dc:date>2019-05-29T09:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: BadResponseException: Bad JSON</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/BadResponseException-Bad-JSON/m-p/333302#M19450</link>
      <description>&lt;P&gt;Thanks for the report! We recently made an update to the /2/sharing/create_shared_link_with_settings endpoint (which is what&amp;nbsp;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.&lt;/P&gt;
&lt;P&gt;Please update to the latest version of the SDK (currently&amp;nbsp;v3.0.11) and try again.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 20:04:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/BadResponseException-Bad-JSON/m-p/333302#M19450</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-03-11T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: BadResponseException: Bad JSON</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/BadResponseException-Bad-JSON/m-p/333304#M19451</link>
      <description>&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 20:25:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/BadResponseException-Bad-JSON/m-p/333304#M19451</guid>
      <dc:creator>swong</dc:creator>
      <dc:date>2019-03-11T20:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: BadResponseException: Bad JSON</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/BadResponseException-Bad-JSON/m-p/333310#M19452</link>
      <description>&lt;P&gt;Yes, if you want to continue using&amp;nbsp;v2.1.1 for now, you'll need to update your code, at least to handle that&amp;nbsp;BadResponseException.&lt;/P&gt;
&lt;P&gt;The upgrade from v2.1.1 to v3.* shouldn't be too significant though. The only breaking changes should be the two mentioned here:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/releases/tag/3.0.0&amp;nbsp;" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/releases/tag/3.0.0&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 21:08:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/BadResponseException-Bad-JSON/m-p/333310#M19452</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-03-11T21:08:20Z</dc:date>
    </item>
  </channel>
</rss>

