<?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: 409 error with (JS SDK).sharingGetSharedLinkFile(), works with curl or browser in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/769616#M4047</link>
    <description>&lt;P&gt;Update: the /2/sharing/get_shared_link_metadata and /2/sharing/get_shared_link_file endpoints (and corresponding methods in the SDKs) should now work when using an access token for an app with the app folder access type.&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 18:33:34 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2024-05-09T18:33:34Z</dc:date>
    <item>
      <title>409 error with (JS SDK).sharingGetSharedLinkFile(), works with curl or browser</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/517023#M1833</link>
      <description>&lt;P&gt;I think there's another thread from a couple of years ago about this on the forum, but the forum search didn't bring it up, so here we are..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As described in the title - I have a shared link to a file, which works when I just follow $shared_link_file_url in the browser (whether logged in or with incognito mode), or if I use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;curl -L ${shared_link_file_url}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In both cases, the contents of the text file are returned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If instead, I use the JS SDK in the browser to call&amp;nbsp;dropbox_instance.sharingGetSharedLinkFile(&lt;SPAN&gt;{ url: $shared_link_file_url }&lt;/SPAN&gt;), I get a 409&amp;nbsp;&lt;SPAN&gt;"shared_link_access_denied" error, even if logged in.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So....bug? Timeline on a fix?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 06:03:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/517023#M1833</guid>
      <dc:creator>blobwriter</dc:creator>
      <dc:date>2021-04-30T06:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: 409 error with (JS SDK).sharingGetSharedLinkFile(), works with curl or browser</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/517031#M1834</link>
      <description>&lt;P&gt;Can you confirm you're using an API app registered with the "app folder" access type? There is a bug that results in this error when using this method with an access token for an app folder app. That's still open with engineering, but I don't have a timeline on a fix.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 17:48:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/517031#M1834</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-04-29T17:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: 409 error with (JS SDK).sharingGetSharedLinkFile(), works with curl or browser</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/517437#M1840</link>
      <description>&lt;P&gt;Yep, that's exactly correct, thanks for the fill-in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So with global Dropbox&amp;nbsp; access scope it doesn't happen? That's a much higher trust barrier to get over for users, unfortunately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And just to check: I don't think there's an auth flow for users to make that decision (regarding access scope) for themselves, right? Can an app request global scope, be rebuffed and given only AppFolder scope, and then have to figure out for itself what it should do (e.g. regarding paths)? That way if a user only allowed AppFolder scope, I could just notify them that sharing won't work for the time being.&lt;/P&gt;&lt;P&gt;But as it stands currently, [global scope] vs [app folder scope] is solely set from the DevConsole, is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, regarding the root issue of broken shared links in AppFolders, as a temporary workaround it would be pretty sweet if someone at Dropbox could turn on the Access-Control-Allow-Origin header for publicly shared links, so a regular JS fetch() call could suffice. Or maybe set up a temporary CORS proxy, so I don't have to pay to run one myself? Pwetty pweeze? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@C416A51F5C88BC4C321947886FE0A167/emoticons/1f61b.png" alt=":face_with_tongue:" title=":face_with_tongue:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 May 2021 09:27:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/517437#M1840</guid>
      <dc:creator>blobwriter</dc:creator>
      <dc:date>2021-05-01T09:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: 409 error with (JS SDK).sharingGetSharedLinkFile(), works with curl or browser</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/517733#M1844</link>
      <description>&lt;P&gt;Yes, this bug only affects apps with the "app folder" type, not the "full Dropbox" type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And that's correct, the "app folder" versus "full Dropbox" type is selected when first &lt;A href="https://www.dropbox.com/developers/apps/create" target="_blank"&gt;registering&lt;/A&gt; the API app. There isn't a way to dynamically set or fall back on that, e.g., during the authorization flow. You could register one of each however and switch between them as needed though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I can't make any promises on a workaround, but I'll pass it along.&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 14:37:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/517733#M1844</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-05-03T14:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: 409 error with (JS SDK).sharingGetSharedLinkFile(), works with curl or browser</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/769616#M4047</link>
      <description>&lt;P&gt;Update: the /2/sharing/get_shared_link_metadata and /2/sharing/get_shared_link_file endpoints (and corresponding methods in the SDKs) should now work when using an access token for an app with the app folder access type.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 18:33:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/409-error-with-JS-SDK-sharingGetSharedLinkFile-works-with-curl/m-p/769616#M4047</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-05-09T18:33:34Z</dc:date>
    </item>
  </channel>
</rss>

