<?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: error? in dbx.usersGetCurrentAccount() in javascript in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262046#M15295</link>
    <description>Oh, sorry I didn't try the links themselves. I can't speak to how long that lag is unfortunately, as that's out of our control.</description>
    <pubDate>Tue, 23 Jan 2018 19:37:32 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-01-23T19:37:32Z</dc:date>
    <item>
      <title>error? in dbx.usersGetCurrentAccount() in javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/261941#M15278</link>
      <description>&lt;P&gt;It looks like there's a new structure with dropbox, as of this morning I've been creating my dbx object by calling&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;var dbx = new Dropbox.Dropbox({ clientId: CLIENT_ID });&lt;/PRE&gt;
&lt;P&gt;rather than&lt;/P&gt;
&lt;PRE&gt;var dbx = new Dropbox({ clientId: CLIENT_ID });&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whilst that seems to do the trick, when I try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;dbx.usersGetCurrentAccount()&lt;/PRE&gt;
&lt;P&gt;which seems to have worked before, I now get the error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Uncaught (in promise) {error: "Error in call to API function "users/get_current_a…nt": request body: could not decode input as JSON", response: Response, status: 400}&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation at&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#usersGetCurrentAccount__anchor" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#usersGetCurrentAccount__anchor&lt;/A&gt; suggests no input is required for this? So is this a bug, or can I access the current user's account a different way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my instance, I would like to access the email address the user logged in on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:15:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/261941#M15278</guid>
      <dc:creator>anthonyhaffey</dc:creator>
      <dc:date>2019-05-29T09:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: error? in dbx.usersGetCurrentAccount() in javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/261967#M15282</link>
      <description>Thanks for the report. We're looking into it. I'll follow up here once I have more information on this for you.</description>
      <pubDate>Tue, 23 Jan 2018 13:58:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/261967#M15282</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-23T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: error? in dbx.usersGetCurrentAccount() in javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/261979#M15285</link>
      <description>The API v2 JavaScript SDK just received a major revision that includes breaking changes, with a corresponding major version bump. You can find the release notes here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/releases/tag/v3.0.0" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/releases/tag/v3.0.0&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;This includes a change to how the `Dropbox` object is constructed. In short, as of v3.0.0, you should now use `Dropbox.Dropbox` instead.&lt;BR /&gt;&lt;BR /&gt;In order to avoid major version changes from breaking your app, you can instead import specific versions of the library.&lt;BR /&gt;&lt;BR /&gt;Exactly how you do so depends on where you're loading the library from. &lt;BR /&gt;&lt;BR /&gt;For instance, unpkg has information on specifying particular versions here: &lt;A href="https://unpkg.com/" target="_blank"&gt;https://unpkg.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Anyway, there appears to be a bug with `usersGetCurrentAccount` in the new release. We're investigating that, and I'll let you know once I have an update on that.</description>
      <pubDate>Tue, 23 Jan 2018 15:07:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/261979#M15285</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-23T15:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: error? in dbx.usersGetCurrentAccount() in javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262030#M15290</link>
      <description>The bug with usersGetCurrentAccount should be fixed now, as of v3.0.1. Please try again and let me know if you're still seeing any issues. Thanks!</description>
      <pubDate>Tue, 23 Jan 2018 18:23:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262030#M15290</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-23T18:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: error? in dbx.usersGetCurrentAccount() in javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262035#M15291</link>
      <description>&lt;P&gt;That was quicker than I thought it was going to be, so I reverted to 2.5.13.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to ask a N00b question, but I &amp;lt;script&amp;gt; link to the versions on&amp;nbsp;&lt;A href="https://cdnjs.com/libraries/dropbox.js/" target="_blank"&gt;https://cdnjs.com/libraries/dropbox.js/&lt;/A&gt; as that means it's just one file - can you let me know when it's on there? And is there a reason I shouldn't do that generally? I'm now downloading each .min.js file onto my server and linking to it.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 18:43:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262035#M15291</guid>
      <dc:creator>anthonyhaffey</dc:creator>
      <dc:date>2018-01-23T18:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: error? in dbx.usersGetCurrentAccount() in javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262040#M15293</link>
      <description>&lt;P&gt;v3.0.1 is now available at &lt;A href="https://cdnjs.com/libraries/dropbox.js/" target="_blank"&gt;https://cdnjs.com/libraries/dropbox.js/&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;The Dropbox API v2 JavaScript SDK follows "semantic versioning":&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-js#versioning" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js#versioning&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;That means that we will increase the major version number whenever there are breaking changes, such as the new constructor above. In general, you should avoid automatically using the latest version, i.e., including any major version updates, as your code may break when a major update is released. You should only upgrade to the latest major updates in your released app once you've had a chance to test it in your app and make any necessary changes&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 18:57:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262040#M15293</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-23T18:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: error? in dbx.usersGetCurrentAccount() in javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262042#M15294</link>
      <description>&lt;P&gt;Thanks for the advice - I was linking automatically to the latest version which is why I had breaking. I think I'll proceed with downloading a specific version into my own library and linking to that to avoid breaking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a general question, how long are the lags when getting new links - just tried&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://cdnjs.cloudflare.com/ajax/libs/dropbox.js/3.0.1/Dropbox-sdk.min.js" target="_blank"&gt;https://cdnjs.cloudflare.com/ajax/libs/dropbox.js/3.0.1/Dropbox-sdk.min.js&lt;/A&gt; and&amp;nbsp;got "404 Not Found"&amp;nbsp;despite it being listed on&amp;nbsp;&lt;A href="https://cdnjs.com/libraries/dropbox.js/&amp;nbsp;" target="_blank"&gt;https://cdnjs.com/libraries/dropbox.js/&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 19:02:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262042#M15294</guid>
      <dc:creator>anthonyhaffey</dc:creator>
      <dc:date>2018-01-23T19:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: error? in dbx.usersGetCurrentAccount() in javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262046#M15295</link>
      <description>Oh, sorry I didn't try the links themselves. I can't speak to how long that lag is unfortunately, as that's out of our control.</description>
      <pubDate>Tue, 23 Jan 2018 19:37:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262046#M15295</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-23T19:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: error? in dbx.usersGetCurrentAccount() in javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262047#M15296</link>
      <description>&lt;P&gt;No problem. As things seem to be working on the 2.5.13 version I'll probably hold off on moving over for a few days/week+. I''ll post the outcome on this forum though when I do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 19:39:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/error-in-dbx-usersGetCurrentAccount-in-javascript/m-p/262047#M15296</guid>
      <dc:creator>anthonyhaffey</dc:creator>
      <dc:date>2018-01-23T19:39:44Z</dc:date>
    </item>
  </channel>
</rss>

