<?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 stone_validators.ValidationError in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/245555#M13929</link>
    <description>&lt;P&gt;Has anyone else experienced the error dropbox.stone_validators.ValidationErrror: expected type SharedLink, got integer? I got this on line 484 of dropbox/stone_validators.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These recent updates have kind of broken things and I am just trying to get everything back to a semi stable state.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is running in Python 3 on Pythonista on an iPhone 8+ running iOS 11.0.2&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:18:35 GMT</pubDate>
    <dc:creator>markham</dc:creator>
    <dc:date>2019-05-29T09:18:35Z</dc:date>
    <item>
      <title>stone_validators.ValidationError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/245555#M13929</link>
      <description>&lt;P&gt;Has anyone else experienced the error dropbox.stone_validators.ValidationErrror: expected type SharedLink, got integer? I got this on line 484 of dropbox/stone_validators.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These recent updates have kind of broken things and I am just trying to get everything back to a semi stable state.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is running in Python 3 on Pythonista on an iPhone 8+ running iOS 11.0.2&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:18:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/245555#M13929</guid>
      <dc:creator>markham</dc:creator>
      <dc:date>2019-05-29T09:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: stone_validators.ValidationError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/245632#M13935</link>
      <description>&lt;P&gt;Thanks for the report, and apologies for the trouble!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like the API v2 Python SDK v8.3.0 release changed the positional ordering of arguments for the files_list_folder method, unintentionally breaking any callers relying on the parameters' order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We'll look into fixing this on our side, but the best solution right now is to switch to named parameters, e.g., instead of something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;dbx.files_list_folder("", False)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do something like this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;dbx.files_list_folder(path="", recursive=False)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 15:38:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/245632#M13935</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-10-06T15:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: stone_validators.ValidationError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/246426#M14034</link>
      <description>&lt;P&gt;We've corrected the ordering in &lt;A href="https://github.com/dropbox/dropbox-sdk-python/releases/tag/v8.3.1" target="_self"&gt;v8.3.1&lt;/A&gt; so that developers don't need to update their code when upgrading from 8.2. (If you have already done so though, you will need to revert that change, or, preferably, switch to using named parameters. Apologies for again for the bother.)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 14:41:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/246426#M14034</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-10-11T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: stone_validators.ValidationError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/279125#M16730</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get another error using a files_list_folder in python which states that -&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dropbox.stone_validators.ValidationError: expected type SharedLink, got string - could you suggest why this is happening?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 22:42:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/279125#M16730</guid>
      <dc:creator>jyotinarang</dc:creator>
      <dc:date>2018-06-05T22:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: stone_validators.ValidationError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/279254#M16739</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/694374"&gt;@jyotinarang&lt;/a&gt;&amp;nbsp;You're getting a slightly different error than what was originally reported on this thread, so you're likely hitting a different issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like you're providing a string to the 'shared_link' arg, instead of a &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.files.SharedLink" target="_self"&gt;SharedLink&lt;/A&gt;&amp;nbsp;instance. That is, instead of doing something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;shared_link_url = "..."&lt;BR /&gt;res = dbx.files_list_folder(path="", shared_link=shared_link_url)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;shared_link_url = "..."&lt;BR /&gt;res = dbx.files_list_folder(path="", shared_link=dropbox.files.SharedLink(url=shared_link_url))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't seem to be the problem, please &lt;A href="https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014" target="_blank"&gt;open a new thread&lt;/A&gt; with the details, e.g., the code you're using to reproduce the issue, and we'll take a look.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:46:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/279254#M16739</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-06T17:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: stone_validators.ValidationError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/279257#M16740</link>
      <description>&lt;P&gt;Thanks Greg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This worked for me. This was hard to figure out on my own though.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 18:17:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/stone-validators-ValidationError/m-p/279257#M16740</guid>
      <dc:creator>jyotinarang</dc:creator>
      <dc:date>2018-06-06T18:17:18Z</dc:date>
    </item>
  </channel>
</rss>

