<?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: shared_link_already_exists just after list_shared_links returned nothing in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/shared-link-already-exists-just-after-list-shared-links-returned/m-p/216951#M11298</link>
    <description>&lt;P&gt;Even though you call&amp;nbsp;list_shared_links and create_shared_link_with_settings in the same function, there's still a race condition between the two calls, so you should make sure your call to&amp;nbsp;&lt;SPAN&gt;create_shared_link_with_settings can always handle the possibility of a&amp;nbsp;shared_link_already_exists error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No, having a parent folder shared wouldn't cause a&amp;nbsp;shared_link_already_exists error for a file in that folder.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 20:09:24 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-04-19T20:09:24Z</dc:date>
    <item>
      <title>shared_link_already_exists just after list_shared_links returned nothing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/shared-link-already-exists-just-after-list-shared-links-returned/m-p/216924#M11289</link>
      <description>&lt;P&gt;I maintain&amp;nbsp;an application which uploads files submitted by users and creates a shared link to them.&lt;/P&gt;&lt;P&gt;In most cases it works properly, but today one call to&amp;nbsp;&lt;SPAN&gt;create_shared_link_with_settings returned 409 with the message&amp;nbsp;shared_link_already_exists&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It happened few hundred miliseconds after I called&amp;nbsp;list_shared_links and received nothing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any reasonable explanation to this phenomena?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:23:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/shared-link-already-exists-just-after-list-shared-links-returned/m-p/216924#M11289</guid>
      <dc:creator>Slawek</dc:creator>
      <dc:date>2019-05-29T09:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: shared_link_already_exists just after list_shared_links returned nothing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/shared-link-already-exists-just-after-list-shared-links-returned/m-p/216928#M11291</link>
      <description>While it's technically possible the race condition occurred in this case (i.e., the link was created by some other client in between your two calls to list_shared_links and create_shared_link_with_settings), that is relatively unlikely given the short time span you indicated.&lt;BR /&gt;&lt;BR /&gt;Is it possible your app called create_shared_link_with_settings twice somehow though? E.g., as an automatic retry in response to a network failure? That could cause this.&lt;BR /&gt;&lt;BR /&gt;In any case&amp;nbsp;though, you should implement error handling in your app for the shared_link_already_exists error, regardless of the timing of a previous call to list_shared_links.</description>
      <pubDate>Wed, 19 Apr 2017 18:34:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/shared-link-already-exists-just-after-list-shared-links-returned/m-p/216928#M11291</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-19T18:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: shared_link_already_exists just after list_shared_links returned nothing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/shared-link-already-exists-just-after-list-shared-links-returned/m-p/216940#M11297</link>
      <description>&lt;P&gt;I call&amp;nbsp;&lt;SPAN&gt;list_shared_links and create_shared_link_with_settings in the same&amp;nbsp;function, so the first should discover any shared links created earlier, no matter how. That's my idea for this code ;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In fact I have added this option only as a precaution, because the same function also uploads the file with autorename, so I don't expect any shared link for this file to exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unless this error can be caused by sharing of the parent folder. Of course it would still be a race condition, which is very unprobable&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it possible to get shared_link_already_exists on the file just because a parent folder is shared?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 19:00:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/shared-link-already-exists-just-after-list-shared-links-returned/m-p/216940#M11297</guid>
      <dc:creator>Slawek</dc:creator>
      <dc:date>2017-04-19T19:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: shared_link_already_exists just after list_shared_links returned nothing</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/shared-link-already-exists-just-after-list-shared-links-returned/m-p/216951#M11298</link>
      <description>&lt;P&gt;Even though you call&amp;nbsp;list_shared_links and create_shared_link_with_settings in the same function, there's still a race condition between the two calls, so you should make sure your call to&amp;nbsp;&lt;SPAN&gt;create_shared_link_with_settings can always handle the possibility of a&amp;nbsp;shared_link_already_exists error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No, having a parent folder shared wouldn't cause a&amp;nbsp;shared_link_already_exists error for a file in that folder.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 20:09:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/shared-link-already-exists-just-after-list-shared-links-returned/m-p/216951#M11298</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-19T20:09:24Z</dc:date>
    </item>
  </channel>
</rss>

