<?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: OAuth2 problems with Django and Django Db Backup in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/214046#M10922</link>
    <description>&lt;P&gt;Regarding the 413 error, can you share the HTTP request being sent? (Just be sure to redact the access token.) A 413 error should indicate that the request payload was too large, so we should first determine what you're sending.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when you refer to your OAuth 2 "key", do you mean your OAuth 2 access token? The access token itself doesn't expire, so the app should store and re-use it. Exactly how the app does that is up to the app though, and since "&lt;SPAN&gt;Django dbbackup" is made by a third party, we can't offer support for&amp;nbsp;Django dbbackup itself.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2017 20:28:49 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-03-30T20:28:49Z</dc:date>
    <item>
      <title>OAuth2 problems with Django and Django Db Backup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/213984#M10919</link>
      <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm having a problem regarding the usage of the DropBox API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using dropbox to backup a few of my databases, which it worked perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Django, Django dbbackup and internally it uses the dropbox api. I've checked and we are using the latest versions of all libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have generated a proper Oauth2 key, using your UI to do so. I've configured it properly on my side, and tried to generate a backup. the backup get's generated but the upload to dropbox fails with an 413 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dropbox.rest.ErrorResponse: [413] Error parsing response body or headers: Body - '&amp;lt;!DOCTYPE html&amp;gt;\n&amp;lt;html&amp;gt;\n&amp;lt;head&amp;gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;\ Headers - HTTPHeaderDict({'Content-Length': '25546', 'X-Robots-Tag': 'noindex, nofollow, noimageindex', 'Server': 'nginx', 'Connection': 'close', 'ETag': '"58c83253-63ca"', 'X-Dropbox-Request-Id': '9aa2ced5c801b7f47ca37e7c5704d6bd', 'Date': 'Thu, 30 Mar 2017 15:06:45 GMT', 'Content-Type': 'text/html'})&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also another funny thing is that the generated key does not get persisted within my account. I ask to generate a new key, it does and it outputs it to me. I hit f5 to reload the page and it's gone, and I have the option to generate the key again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/213984#M10919</guid>
      <dc:creator>george-silva</dc:creator>
      <dc:date>2019-05-29T09:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 problems with Django and Django Db Backup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/214046#M10922</link>
      <description>&lt;P&gt;Regarding the 413 error, can you share the HTTP request being sent? (Just be sure to redact the access token.) A 413 error should indicate that the request payload was too large, so we should first determine what you're sending.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when you refer to your OAuth 2 "key", do you mean your OAuth 2 access token? The access token itself doesn't expire, so the app should store and re-use it. Exactly how the app does that is up to the app though, and since "&lt;SPAN&gt;Django dbbackup" is made by a third party, we can't offer support for&amp;nbsp;Django dbbackup itself.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 20:28:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/214046#M10922</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-30T20:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 problems with Django and Django Db Backup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/214050#M10925</link>
      <description>&lt;P&gt;Hey Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is not that the payload is too large. Here's the title:&lt;/P&gt;&lt;PRE&gt;Error parsing response body or header&lt;/PRE&gt;&lt;P&gt;Analyzing your code for your python dropbox implementation, this error occurs if there is no error message returned in the payload. It's the last case of a large if condition, here:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/master/dropbox/rest.py#L406-L408" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-python/blob/master/dropbox/rest.py#L406-L408&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I generate a new key for an Dropbox App?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, I've created a new app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a bunch of sections, such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Status&lt;/P&gt;&lt;P&gt;* Development Users&lt;/P&gt;&lt;P&gt;* app folder name&lt;/P&gt;&lt;P&gt;* etc&lt;/P&gt;&lt;P&gt;* OAuth2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that section, (oauth2), there are the following options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* redirect urls&lt;/P&gt;&lt;P&gt;* allow implicit grant&lt;/P&gt;&lt;P&gt;* generate key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This application, particularly does not comunicate with a lot of users, just one, me. So I've generated the key and used to communicate between my Django application and Dropbox. Each time I click it, it generates a new key. If I hit f5, it will not show that key again. If I hit generate key again, it will give me another key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since this worked before, I know this problem is not located in django-dbbackup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I must be doing something wrong, because this looks like a generic "cant connect error".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the correct way to generate a key, for **my user** to be used with oauth2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 20:39:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/214050#M10925</guid>
      <dc:creator>george-silva</dc:creator>
      <dc:date>2017-03-30T20:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 problems with Django and Django Db Backup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/214052#M10927</link>
      <description>&lt;P&gt;Thanks for the additional information. Can you share the request itself though? That should help show what the issue is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, if you just need an access token for your own account on your own app, you can use that 'Generate' button to get one. The page will show it to you, and you should then copy it from the page, and then store and re-use it in your app. That page won't show it again if you refresh the page.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 20:54:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/214052#M10927</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-30T20:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth2 problems with Django and Django Db Backup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/214054#M10928</link>
      <description>&lt;P&gt;Ok, regarding the token generation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm already doing that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request itself is being made in two or three layers of opensource applications. I' ve searched these apps and there is no sign of registered bug in their side (it can be on their side, however).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to get the full request. I'll just edit my copy of dropbox lib and add a pdb there.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 20:58:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OAuth2-problems-with-Django-and-Django-Db-Backup/m-p/214054#M10928</guid>
      <dc:creator>george-silva</dc:creator>
      <dc:date>2017-03-30T20:58:31Z</dc:date>
    </item>
  </channel>
</rss>

