<?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: API Lookup Error in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lookup-Error/m-p/583663#M27183</link>
    <description>&lt;P&gt;Thank you, it seems that the access and refresh tokens were actually not being passed in properly.&lt;/P&gt;&lt;P&gt;On a different note, when I use the OAuth flow to authorize connecting a Dropbox account to this app, I think something is insecure about it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (41)_LI.jpg" style="width: 670px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/28158i77B61A5EE6136DCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (41)_LI.jpg" alt="Screenshot (41)_LI.jpg" /&gt;&lt;/span&gt;Why is Dropbox asking to access my contacts?&amp;nbsp; That has nothing to do with the app I built.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 09:54:39 GMT</pubDate>
    <dc:creator>af11</dc:creator>
    <dc:date>2022-03-15T09:54:39Z</dc:date>
    <item>
      <title>API Lookup Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lookup-Error/m-p/582256#M27124</link>
      <description>&lt;P&gt;I have an app that is connected to my dropbox account with a webhook and sends an alert each time something is changed in certain folders.&amp;nbsp; For some reason, I am getting the following error when I make changes to files in the account&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;dropbox.exceptions.ApiError: ApiError('8fe4838db3874737b55c0d7e3935585e', ListFolderError('path', LookupError('unsupported_content_type', None)))&lt;/PRE&gt;
&lt;P&gt;The following is the code running in which this error is happening:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;def &lt;/SPAN&gt;process_user(account, access_token, refresh_token):&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;# cursor for the user (None the first time)&lt;BR /&gt;&lt;/SPAN&gt;    cursor = redis_client.hget(&lt;SPAN&gt;'cursors'&lt;/SPAN&gt;, account)&lt;BR /&gt;&lt;BR /&gt;    dbx = Dropbox(&lt;BR /&gt;        &lt;SPAN&gt;oauth2_access_token&lt;/SPAN&gt;=access_token,&lt;BR /&gt;        &lt;SPAN&gt;oauth2_refresh_token&lt;/SPAN&gt;=refresh_token,&lt;BR /&gt;        &lt;SPAN&gt;app_key&lt;/SPAN&gt;=APP_KEY,&lt;BR /&gt;        &lt;SPAN&gt;app_secret&lt;/SPAN&gt;=APP_SECRET&lt;BR /&gt;    )&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;'PROCESS USER IS RUNNING'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;    has_more = &lt;SPAN&gt;True&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    while &lt;/SPAN&gt;has_more:&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;cursor &lt;SPAN&gt;is None&lt;/SPAN&gt;:&lt;BR /&gt;            result = dbx.files_list_folder(&lt;SPAN&gt;path&lt;/SPAN&gt;=&lt;SPAN&gt;''&lt;/SPAN&gt;, &lt;SPAN&gt;recursive&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;include_non_downloadable_files&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;            result = dbx.files_list_folder_continue(cursor)&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;for &lt;/SPAN&gt;entry &lt;SPAN&gt;in &lt;/SPAN&gt;result.entries:&lt;BR /&gt;            &lt;SPAN&gt;if &lt;/SPAN&gt;filter_notifications(entry):&lt;BR /&gt;                &lt;SPAN&gt;if &lt;/SPAN&gt;&lt;SPAN&gt;isinstance&lt;/SPAN&gt;(entry, FileMetadata):&lt;BR /&gt;                    send_notification(&lt;SPAN&gt;'File Metadat'&lt;/SPAN&gt;)&lt;BR /&gt;                &lt;SPAN&gt;elif &lt;/SPAN&gt;&lt;SPAN&gt;isinstance&lt;/SPAN&gt;(entry, DeletedMetadata):&lt;BR /&gt;                    send_notification(&lt;SPAN&gt;'DeletedMetadata'&lt;/SPAN&gt;)&lt;BR /&gt;                &lt;SPAN&gt;elif &lt;/SPAN&gt;&lt;SPAN&gt;isinstance&lt;/SPAN&gt;(entry, FolderMetadata):&lt;BR /&gt;                    send_notification(&lt;SPAN&gt;'Folder Metadata'&lt;/SPAN&gt;)&lt;BR /&gt;                &lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;                    send_notification(&lt;SPAN&gt;'Something happened, not sure what...'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;# Update cursor&lt;BR /&gt;&lt;/SPAN&gt;        cursor = result.cursor&lt;BR /&gt;        redis_client.hset(&lt;SPAN&gt;'cursors'&lt;/SPAN&gt;, account, cursor)&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;# Repeat only if there's more to do&lt;BR /&gt;&lt;/SPAN&gt;        has_more = result.has_more&lt;/PRE&gt;
&lt;P&gt;Please advise what could be wrong.&amp;nbsp; Thank you for your help&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 21:32:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lookup-Error/m-p/582256#M27124</guid>
      <dc:creator>af11</dc:creator>
      <dc:date>2022-03-09T21:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: API Lookup Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lookup-Error/m-p/582345#M27132</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1506044"&gt;@af11&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that the error you are receiving appears to be a lookup error indicating you are trying to access an unsupported content type. Can you please reply with what changes you are making in the account that cause this issue as well as the file types you are working with?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you also validate that you are passing in a valid access token and refresh token? For security reasons, please do not paste them here but just validate that they are passed in and not null. The `list_folder` endpoint supports both user and app auth. When no access token is present, it will attempt to use the app key and secret to authenticate which only works on shared links which could explain the issue you are running into.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you also include the line in which you are receiving this error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Brad&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 17:55:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lookup-Error/m-p/582345#M27132</guid>
      <dc:creator>Brogers</dc:creator>
      <dc:date>2022-03-08T17:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: API Lookup Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lookup-Error/m-p/583663#M27183</link>
      <description>&lt;P&gt;Thank you, it seems that the access and refresh tokens were actually not being passed in properly.&lt;/P&gt;&lt;P&gt;On a different note, when I use the OAuth flow to authorize connecting a Dropbox account to this app, I think something is insecure about it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (41)_LI.jpg" style="width: 670px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/28158i77B61A5EE6136DCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (41)_LI.jpg" alt="Screenshot (41)_LI.jpg" /&gt;&lt;/span&gt;Why is Dropbox asking to access my contacts?&amp;nbsp; That has nothing to do with the app I built.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 09:54:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lookup-Error/m-p/583663#M27183</guid>
      <dc:creator>af11</dc:creator>
      <dc:date>2022-03-15T09:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: API Lookup Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lookup-Error/m-p/583757#M27188</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1506044"&gt;@af11&lt;/a&gt; Thanks for following up. I'm glad to hear you got that working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your new question seems to be related to using Google to sign in to Dropbox, and the level of access used in that flow. We can only help with the Dropbox API itself here, so I recommend opening a thread in the &lt;A href="https://www.dropboxforum.com/t5/Accounts-billing/ct-p/accounts-billing" target="_self"&gt;accounts section of the forum&lt;/A&gt; or &lt;A href="https://www.dropbox.com/support/" target="_self"&gt;contacting support&lt;/A&gt; for that instead.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 16:14:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Lookup-Error/m-p/583757#M27188</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-03-15T16:14:01Z</dc:date>
    </item>
  </channel>
</rss>

