<?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 SwiftyDropbox - how to catch improperly formatted path in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-how-to-catch-improperly-formatted-path/m-p/249348#M14320</link>
    <description>&lt;P&gt;If I make a call, (e.g. using listFolder), and I pass in an invalid path argument, (e.g. no leading slash), I get the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;precondition failed: "Does not exist must match pattern "\A(?:(/(.|[\r\n])*)?|id:.*|(ns:[0-9]+(/.*)?))\z":&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand why the error occurs, but the error seems to occur, before the call gets made, and doesn't show up, when I check the response for an error. My question is, how can I catch this kind of error of the path argument?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:17:52 GMT</pubDate>
    <dc:creator>vewert</dc:creator>
    <dc:date>2019-05-29T09:17:52Z</dc:date>
    <item>
      <title>SwiftyDropbox - how to catch improperly formatted path</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-how-to-catch-improperly-formatted-path/m-p/249348#M14320</link>
      <description>&lt;P&gt;If I make a call, (e.g. using listFolder), and I pass in an invalid path argument, (e.g. no leading slash), I get the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;precondition failed: "Does not exist must match pattern "\A(?:(/(.|[\r\n])*)?|id:.*|(ns:[0-9]+(/.*)?))\z":&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand why the error occurs, but the error seems to occur, before the call gets made, and doesn't show up, when I check the response for an error. My question is, how can I catch this kind of error of the path argument?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:17:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-how-to-catch-improperly-formatted-path/m-p/249348#M14320</guid>
      <dc:creator>vewert</dc:creator>
      <dc:date>2019-05-29T09:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropbox - how to catch improperly formatted path</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-how-to-catch-improperly-formatted-path/m-p/249372#M14322</link>
      <description>The SDK has a copy of the API specification and can tell when the supplied value isn't valid without making a call to the server (and thus without going through the API error callback).&lt;BR /&gt;&lt;BR /&gt;You'll need to prevent your app from using invalid values like this in the first place. E.g., only use safe values returned by the API, such as in Metadata.pathLower, or just "" for root. If your app allows the user to manually enter in path values, you'll need to check them against the pattern in that error message first.</description>
      <pubDate>Wed, 25 Oct 2017 19:24:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-how-to-catch-improperly-formatted-path/m-p/249372#M14322</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-10-25T19:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropbox - how to catch improperly formatted path</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-how-to-catch-improperly-formatted-path/m-p/249417#M14323</link>
      <description>&lt;P&gt;That makes sense. I'll make sure my app uses only valid values for path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for your quick and helpful response.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 20:53:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-how-to-catch-improperly-formatted-path/m-p/249417#M14323</guid>
      <dc:creator>vewert</dc:creator>
      <dc:date>2017-10-25T20:53:00Z</dc:date>
    </item>
  </channel>
</rss>

