<?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 Invalid Access Token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Access-Token/m-p/370619#M20906</link>
    <description>&lt;P&gt;var name = teamNum + "/" + matchNum + ".json";&lt;/P&gt;
&lt;P&gt;var xhr = new XMLHttpRequest();&lt;BR /&gt;var filename = name;&lt;BR /&gt;var file = new File([JSON.stringify(dataset)], filename, { type: "text/json;charset=utf-8" });&lt;BR /&gt;xhr.open('POST', '&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;');&lt;BR /&gt;xhr.setRequestHeader('Authorization', 'Bearer ' + &amp;lt;accessToken&amp;gt;);&lt;BR /&gt;xhr.setRequestHeader('Content-Type', 'application/octet-stream');&lt;BR /&gt;xhr.setRequestHeader('Dropbox-API-Arg', JSON.stringify({&lt;BR /&gt;path: '/Apps/BeachBlitz/' + file.name,&lt;BR /&gt;mode: 'overwrite',&lt;BR /&gt;autorename: false,&lt;BR /&gt;mute: false&lt;BR /&gt;}));&lt;BR /&gt;xhr.send(file);&lt;/P&gt;
&lt;P&gt;The above code is giving me invalid access token but I definitely have a valid one.&amp;nbsp; &amp;nbsp;Does the above code look correct?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 00:11:07 GMT</pubDate>
    <dc:creator>FRC2637Scouting</dc:creator>
    <dc:date>2019-10-11T00:11:07Z</dc:date>
    <item>
      <title>Invalid Access Token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Access-Token/m-p/370619#M20906</link>
      <description>&lt;P&gt;var name = teamNum + "/" + matchNum + ".json";&lt;/P&gt;
&lt;P&gt;var xhr = new XMLHttpRequest();&lt;BR /&gt;var filename = name;&lt;BR /&gt;var file = new File([JSON.stringify(dataset)], filename, { type: "text/json;charset=utf-8" });&lt;BR /&gt;xhr.open('POST', '&lt;A href="https://content.dropboxapi.com/2/files/upload" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;');&lt;BR /&gt;xhr.setRequestHeader('Authorization', 'Bearer ' + &amp;lt;accessToken&amp;gt;);&lt;BR /&gt;xhr.setRequestHeader('Content-Type', 'application/octet-stream');&lt;BR /&gt;xhr.setRequestHeader('Dropbox-API-Arg', JSON.stringify({&lt;BR /&gt;path: '/Apps/BeachBlitz/' + file.name,&lt;BR /&gt;mode: 'overwrite',&lt;BR /&gt;autorename: false,&lt;BR /&gt;mute: false&lt;BR /&gt;}));&lt;BR /&gt;xhr.send(file);&lt;/P&gt;
&lt;P&gt;The above code is giving me invalid access token but I definitely have a valid one.&amp;nbsp; &amp;nbsp;Does the above code look correct?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 00:11:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Access-Token/m-p/370619#M20906</guid>
      <dc:creator>FRC2637Scouting</dc:creator>
      <dc:date>2019-10-11T00:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Access Token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Access-Token/m-p/370789#M20908</link>
      <description>&lt;P&gt;I just tried this code and it worked fine for me.&lt;/P&gt;
&lt;P&gt;Can you clarify what you mean when you say you "definitely have a valid one"? How did you get the access token and how are you verifying that it's still active?&lt;/P&gt;
&lt;P&gt;While&amp;nbsp;Dropbox API access tokens don't expire by themselves, there a number of different ways that a Dropbox API access token can become invalid:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the user can revoke all access tokens for an app by unlinking it on &lt;A href="https://www.dropbox.com/account/connected_apps" target="_self"&gt;the connected apps page&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;the app (or anyone with access to the access token) can revoke an access token by calling &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_self"&gt;/2/auth/token/revoke&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;if the app uses the "app folder" permission, the token can be disabled by the user deleting the app folder itself in the Dropbox account, either via the Dropbox website or any client&lt;/LI&gt;
&lt;LI&gt;the app can be disabled&lt;/LI&gt;
&lt;LI&gt;the connected account can be disabled&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 11 Oct 2019 14:10:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Access-Token/m-p/370789#M20908</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-10-11T14:10:43Z</dc:date>
    </item>
  </channel>
</rss>

