<?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: Getting error on         shared_link_metadata = dbx.sharing_create_shared_link_with_settings in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-error-on-shared-link-metadata-dbx-sharing-create-shared/m-p/705816#M31395</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/547541"&gt;@babydream&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, link to a file/folder can be created single time only. When try again, you get back error showing that link exists. In many cases, like yours, the actual link comes together with the error and you may fetch it out from there (take a look &lt;A href="https://www.dropboxforum.com/t5/Create-upload-and-share/How-can-a-script-or-app-get-a-shareable-Dropbox-link/m-p/680928#M68463" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for example how can be done). If the link doesn't accompany the exception, you should take list of shared links while pointing desired file/folder to get direct link (this is missing in the referred example).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Sat, 12 Aug 2023 03:16:49 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2023-08-12T03:16:49Z</dc:date>
    <item>
      <title>Getting error on         shared_link_metadata = dbx.sharing_create_shared_link_with_settings</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-error-on-shared-link-metadata-dbx-sharing-create-shared/m-p/705797#M31394</link>
      <description>&lt;P&gt;I have this code working in my development environment, but it will not work using our production environment.&amp;nbsp; I 've created a branding as specified in the documentation.&amp;nbsp; The scoped apps are identical.&amp;nbsp; Am I missing something?&amp;nbsp; The shared linked retrieved is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the exception I am getting:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CreateSharedLinkWithSettingsError('shared_link_already_exists', SharedLinkAlreadyExistsMetadata('metadata', FileLinkMetadata(client_modified=datetime.datetime(2022, 5, 26, 19, 44, 45), content_owner_team_info=NOT_SET, expires=NOT_SET, id='id:Fpt6TPwBUf0AAAAAAAA-PA', link_permissions=LinkPermissions(allow_comments=True, allow_download=True, audience_options=[LinkAudienceOption(allowed=True, audience=LinkAudience('public', None), disallowed_reason=NOT_SET), LinkAudienceOption(allowed=True, audience=LinkAudience('team', None), disallowed_reason=NOT_SET), LinkAudienceOption(allowed=True, audience=LinkAudience('password', None), disallowed_reason=NOT_SET), LinkAudienceOption(allowed=True, audience=LinkAudience('no_one', None), disallowed_reason=NOT_SET)], can_allow_download=True, can_disallow_download=True, can_remove_expiry=True, can_remove_password=True, can_revoke=True, can_set_expiry=True, can_set_password=True, can_use_extended_sharing_controls=NOT_SET, effective_audience=NOT_SET, link_access_level=NOT_SET, requested_visibility=RequestedVisibility('public', None), require_password=NOT_SET, resolved_visibility=ResolvedVisibility('public', None), revoke_failure_reason=NOT_SET, team_restricts_comments=False, visibility_policies=[VisibilityPolicy(allowed=True, disallowed_reason=NOT_SET, policy=RequestedVisibility('public', None), resolved_policy=AlphaResolvedVisibility('public', None)), VisibilityPolicy(allowed=True, disallowed_reason=NOT_SET, policy=RequestedVisibility('team_only', None), resolved_policy=AlphaResolvedVisibility('team_only', None)), VisibilityPolicy(allowed=True, disallowed_reason=NOT_SET, policy=RequestedVisibility('password', None), resolved_policy=AlphaResolvedVisibility('password', None))]), name='Beach Vibes - 6x8 - GO WEB.jpg', path_lower='/test_app/beach vibes (go)/beach vibes - 6x8 - go web.jpg', rev='602ac30fc00f96a49d3d3', server_modified=datetime.datetime(2023, 8, 11, 21, 13, 59), size=1251420, team_member_info=TeamMemberInfo(display_name='Spencer Treadwell', member_id='dbmid:AAD0RjvblA75FwxwxOysVcw5sM1X7rbEfXw', team_info=Team(id='dbtid:AABwTGjgmzPm2JVb_S_Pf5GBZ0wgZwZ2J9w', name='baby dream')), url='&lt;A href="https://www.dropbox.com/s/pexagwz8il76t1k/Beach%20Vibes%20-%206x8%20-%20GO%20WEB.jpg?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/pexagwz8il76t1k/Beach%20Vibes%20-%206x8%20-%20GO%20WEB.jpg?dl=0&lt;/A&gt;')))&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 23:54:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-error-on-shared-link-metadata-dbx-sharing-create-shared/m-p/705797#M31394</guid>
      <dc:creator>babydream</dc:creator>
      <dc:date>2023-08-22T23:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error on         shared_link_metadata = dbx.sharing_create_shared_link_with_settings</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-error-on-shared-link-metadata-dbx-sharing-create-shared/m-p/705816#M31395</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/547541"&gt;@babydream&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, link to a file/folder can be created single time only. When try again, you get back error showing that link exists. In many cases, like yours, the actual link comes together with the error and you may fetch it out from there (take a look &lt;A href="https://www.dropboxforum.com/t5/Create-upload-and-share/How-can-a-script-or-app-get-a-shareable-Dropbox-link/m-p/680928#M68463" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for example how can be done). If the link doesn't accompany the exception, you should take list of shared links while pointing desired file/folder to get direct link (this is missing in the referred example).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2023 03:16:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-error-on-shared-link-metadata-dbx-sharing-create-shared/m-p/705816#M31395</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-08-12T03:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error on         shared_link_metadata = dbx.sharing_create_shared_link_with_settings</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-error-on-shared-link-metadata-dbx-sharing-create-shared/m-p/706108#M31398</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/547541"&gt;@babydream&lt;/a&gt; Yes, as Здравко said, a 'shared_link_already_exists' error from&amp;nbsp;&lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.sharing_create_shared_link_with_settings" target="_blank"&gt;sharing_create_shared_link_with_settings&lt;/A&gt; indicates that the call failed because a link already exists for that file. As for why it fails in one environment and not the other, check which account(s) you're calling in each. If you're connected to the same account in both, the first call may work and the second may fail, since the link was created by the first call, for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get the existing link from the error if it is included there, otherwise you can call &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.sharing_list_shared_links" target="_blank"&gt;sharing_list_shared_links&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 14:24:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-error-on-shared-link-metadata-dbx-sharing-create-shared/m-p/706108#M31398</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-08-14T14:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error on         shared_link_metadata = dbx.sharing_create_shared_link_with_settings</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-error-on-shared-link-metadata-dbx-sharing-create-shared/m-p/706155#M31399</link>
      <description>&lt;P&gt;Thanks for the feedback.&amp;nbsp; I did notice that the link was included in the error message.&amp;nbsp; I was just surprised when using my development id compared to using the production id I am getting different results.&amp;nbsp; I can run in development the same code over and over without a problem.&amp;nbsp; So now in the exception I need to extract the link.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 19:00:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-error-on-shared-link-metadata-dbx-sharing-create-shared/m-p/706155#M31399</guid>
      <dc:creator>babydream</dc:creator>
      <dc:date>2023-08-14T19:00:51Z</dc:date>
    </item>
  </channel>
</rss>

