<?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 unknown tag 'banned_member' in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/unknown-tag-banned-member/m-p/756171#M3952</link>
    <description>&lt;LI-CODE lang="markup"&gt;Hello,

I am encountering an issue with the Dropbox Python SDK. While trying to create a shared link with settings, I am receiving "Traceback (most recent call last):
File "C:\Users\Administrator\OneDrive\Desktop\TRYOFFICE\XFOX\xfoxgo.py", line 17, in &amp;lt;module&amp;gt;
shared_link_metadata = dbx.sharing_create_shared_link_with_settings(dropbox_file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\dropbox\base.py", line 4584, in sharing_create_shared_link_with_settings
r = self.request(
^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\dropbox\dropbox_client.py", line 347, in request
deserialized_result = stone_serializers.json_compat_obj_decode(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\stone\backends\python_rsrc\stone_serializers.py", line 977, in json_compat_obj_decode
return decoder.json_compat_obj_decode_helper(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\stone\backends\python_rsrc\stone_serializers.py", line 563, in json_compat_obj_decode_helper
return self.decode_union(data_type, obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\stone\backends\python_rsrc\stone_serializers.py", line 658, in decode_union
tag, val = self.decode_union_dict(data_type, obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\stone\backends\python_rsrc\stone_serializers.py", line 676, in decode_union_dict
raise bv.ValidationError("unknown tag '%s'" % tag)
stone.backends.python_rsrc.stone_validators.ValidationError: unknown tag 'banned_member'

&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 10 Mar 2024 00:02:37 GMT</pubDate>
    <dc:creator>xfoxhack</dc:creator>
    <dc:date>2024-03-10T00:02:37Z</dc:date>
    <item>
      <title>unknown tag 'banned_member'</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/unknown-tag-banned-member/m-p/756171#M3952</link>
      <description>&lt;LI-CODE lang="markup"&gt;Hello,

I am encountering an issue with the Dropbox Python SDK. While trying to create a shared link with settings, I am receiving "Traceback (most recent call last):
File "C:\Users\Administrator\OneDrive\Desktop\TRYOFFICE\XFOX\xfoxgo.py", line 17, in &amp;lt;module&amp;gt;
shared_link_metadata = dbx.sharing_create_shared_link_with_settings(dropbox_file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\dropbox\base.py", line 4584, in sharing_create_shared_link_with_settings
r = self.request(
^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\dropbox\dropbox_client.py", line 347, in request
deserialized_result = stone_serializers.json_compat_obj_decode(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\stone\backends\python_rsrc\stone_serializers.py", line 977, in json_compat_obj_decode
return decoder.json_compat_obj_decode_helper(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\stone\backends\python_rsrc\stone_serializers.py", line 563, in json_compat_obj_decode_helper
return self.decode_union(data_type, obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\stone\backends\python_rsrc\stone_serializers.py", line 658, in decode_union
tag, val = self.decode_union_dict(data_type, obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\stone\backends\python_rsrc\stone_serializers.py", line 676, in decode_union_dict
raise bv.ValidationError("unknown tag '%s'" % tag)
stone.backends.python_rsrc.stone_validators.ValidationError: unknown tag 'banned_member'

&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 10 Mar 2024 00:02:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/unknown-tag-banned-member/m-p/756171#M3952</guid>
      <dc:creator>xfoxhack</dc:creator>
      <dc:date>2024-03-10T00:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: unknown tag 'banned_member'</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/unknown-tag-banned-member/m-p/756367#M3953</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1811908"&gt;@xfoxhack&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Unfortunately, the type of API error you meet, is not yet included in Dropbox Python SDK &lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/dropbox/sharing.py#L11394" target="_blank" rel="noopener"&gt;supported error types for that call&lt;/A&gt;. Since there is not any additional error type fields (it's type &lt;EM&gt;void&lt;/EM&gt;), as a workaround, you can catch the type 'ValidationError' and compare the content literally. In such a way you can introduce some support (as a patch) for that error in your application till official support if any.&lt;/P&gt;&lt;P&gt;Additional hack might be to put on top of your source (before any other Dropbox related method execution) on global place something like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from dropbox import sharing as s
s.CreateSharedLinkWithSettingsError._banned_member = s.bv.Void()
s.CreateSharedLinkWithSettingsError._tagmap['banned_member'
  ] = s.CreateSharedLinkWithSettingsError._banned_member&lt;/LI-CODE&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 13:32:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/unknown-tag-banned-member/m-p/756367#M3953</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-03-11T13:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: unknown tag 'banned_member'</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/unknown-tag-banned-member/m-p/756400#M3955</link>
      <description>&lt;P&gt;This error would occur because the user's account is currently &lt;A href="https://help.dropbox.com/share/banned-links" target="_blank" rel="noopener noreferrer"&gt;banned from creating links&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As Здравко noted, the Dropbox Python SDK is not currently updated to handle that particular error properly, so it raises a ValidationError instead, but I'll ask the team to fix that up.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 14:32:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/unknown-tag-banned-member/m-p/756400#M3955</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-03-11T14:32:56Z</dc:date>
    </item>
  </channel>
</rss>

