<?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 authentication error in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14106#M504</link>
    <description>&lt;P&gt;Following is the the code from dropbox tutorials&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;from dropbox.client import DropboxOAuth2FlowNoRedirect, DropboxClient
from dropbox import rest as dbrest

auth_flow = DropboxOAuth2FlowNoRedirect('r********', 'r***********')

authorize_url = auth_flow.start()
print ('1. Go to: ' + authorize_url)
print ('2. Click \'Allow\' (you might have to log in first).')
print ('3. Copy the authorization code.')
auth_code = input('Enter the authorization code here: ')

try:
    access_token, user_id = auth_flow.finish(auth_code)
except (dbrest.ErrorResponse) as e:
    print('Error: %s' % (e,))

c = DropboxClient(access_token)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i get the following response&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error: [400] 'invalid_client' Traceback (most recent call last):
File "test2.py", line 17, in c = DropboxClient(access_token) NameError: name 'access_token' is not defined
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 May 2019 09:42:13 GMT</pubDate>
    <dc:creator>Bilal L.</dc:creator>
    <dc:date>2019-05-29T09:42:13Z</dc:date>
    <item>
      <title>authentication error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14106#M504</link>
      <description>&lt;P&gt;Following is the the code from dropbox tutorials&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;from dropbox.client import DropboxOAuth2FlowNoRedirect, DropboxClient
from dropbox import rest as dbrest

auth_flow = DropboxOAuth2FlowNoRedirect('r********', 'r***********')

authorize_url = auth_flow.start()
print ('1. Go to: ' + authorize_url)
print ('2. Click \'Allow\' (you might have to log in first).')
print ('3. Copy the authorization code.')
auth_code = input('Enter the authorization code here: ')

try:
    access_token, user_id = auth_flow.finish(auth_code)
except (dbrest.ErrorResponse) as e:
    print('Error: %s' % (e,))

c = DropboxClient(access_token)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i get the following response&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error: [400] 'invalid_client' Traceback (most recent call last):
File "test2.py", line 17, in c = DropboxClient(access_token) NameError: name 'access_token' is not defined
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:42:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14106#M504</guid>
      <dc:creator>Bilal L.</dc:creator>
      <dc:date>2019-05-29T09:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14107#M505</link>
      <description>&lt;P&gt;Hi - did you create a new app in the App Console? &lt;A href="https://www.dropbox.com/developers/apps" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/apps&lt;/A&gt;&lt;BR /&gt;
Are you then using the correct app key and app secret when setting up your &lt;CODE&gt;DropboxOAuth2FlowNoRedirect&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 01:09:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14107#M505</guid>
      <dc:creator>Leah C.1</dc:creator>
      <dc:date>2015-06-09T01:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14108#M506</link>
      <description>&lt;P&gt;yes all those steps are perfectly ok. i created the app and got the app and secret keys from there, passed the keys to DropboxOAuth2FlowNoRedirect. after i got the url, i copied it and paste the link in browser to allow and got the code there. I copied the code from website and paste it on the screen asking for authentication key. but finish() generates an error that key is invalid.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:13:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14108#M506</guid>
      <dc:creator>Malani S.</dc:creator>
      <dc:date>2015-06-09T09:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14109#M507</link>
      <description>&lt;P&gt;It could be an issue with extra whitespace when copying the access token from the web browser.&lt;/P&gt;

&lt;P&gt;It may help to print out the full error body like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;try:
    access_token, user_id = flow.finish(code)
except dropbox.rest.ErrorResponse as err:
    print err.body
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jun 2015 10:26:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14109#M507</guid>
      <dc:creator>Leah C.1</dc:creator>
      <dc:date>2015-06-09T10:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14110#M508</link>
      <description>&lt;P&gt;Error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Go to: https://www.dropbox.com/1/oauth2/authorize?client_id=r27dk6ovnuj2u58&amp;amp;r
esponse_type=code
2. Click 'Allow' (you might have to log in first).
3. Copy the authorization code.
Enter the authorization code here: CuItA**************** (a 43 digit number)
CuIt**************** (a 43 digit number)
{'error_description': 'Invalid client_id or client_secret', 'error': 'invalid_client'}
Traceback (most recent call last):
  File "test2.py", line 17, in &amp;lt;module&amp;gt;
    c = DropboxClient(access_token)
NameError: name 'access_token' is not defined
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jun 2015 10:53:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14110#M508</guid>
      <dc:creator>Malani S.</dc:creator>
      <dc:date>2015-06-09T10:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14111#M509</link>
      <description>&lt;P&gt;My guess would be that your app secret is incorrect. Make sure that the app secret you're using in your code (the second parameter to the &lt;CODE&gt;DropboxOAuth2FlowNoRedirect&lt;/CODE&gt; constructor) matches the one found on the &lt;A href="https://www.dropbox.com/developers/apps" rel="nofollow noreferrer"&gt;app console&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 00:56:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14111#M509</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-06-10T00:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14112#M510</link>
      <description>&lt;P&gt;Yes, when I had this issue the app secret was incorrect. Dropbox's page with the app secret won't let you copy it to your clipboard! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt; Originally my app_key and app_secret were the same because it didn't copy correctly and didn't cause an error.&lt;/P&gt;
&lt;P&gt;You have to type the app_secret manually into your code and hope you don't make a mistake and/or check it 10 times.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 08:29:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14112#M510</guid>
      <dc:creator>Alison S.11</dc:creator>
      <dc:date>2016-05-17T08:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: authentication error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14113#M511</link>
      <description>&lt;P&gt;Alison, can you&amp;nbsp;explain what you mean when you say "Dropbox's page with the app secret won't let you copy it to your clipboard?" What exactly did you try and what issue did you run into? (And what OS and browser were you using?)&lt;/P&gt;
&lt;P&gt;For me, I just need to click the "show" button to reveal the secret, and then I can highlight it and copy it like&amp;nbsp;any other text on the page.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 08:35:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authentication-error/m-p/14113#M511</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-05-17T08:35:53Z</dc:date>
    </item>
  </channel>
</rss>

