<?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: batch API endpoints can't return errors? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/batch-API-endpoints-can-t-return-errors/m-p/231041#M12585</link>
    <description>&lt;P&gt;I get that, and that would make total sense if these API endpoints didn't also have the ability to fully complete and return results without batching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess my point is, if there is some set of circumstances that make the backend say "hey, this one looks easy, I don't need to batch it, I'll just do this real quick and return the result", OK, fine. &amp;nbsp;But if you encounter an error in that case, now all of the sudden that's something that requires a /check to get the completion (failure)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd prefer they not even have the non-batch shortcut return mode&amp;nbsp;and always just made you get the completion (or error) from /check. &amp;nbsp;That would make a lot more sense and make the client code path a lot simpler.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2017 18:30:17 GMT</pubDate>
    <dc:creator>bobdickinson</dc:creator>
    <dc:date>2017-07-06T18:30:17Z</dc:date>
    <item>
      <title>batch API endpoints can't return errors?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/batch-API-endpoints-can-t-return-errors/m-p/231034#M12583</link>
      <description>&lt;P&gt;I am trying to inderstand the philosophy of the batch APIs (copy_batch, delete_batch, move_batch). &amp;nbsp;I understand the general flow, but I am confused by the modality of these operations being able to complete immediately in some cases (returning a completion result on the initial call, eliminating the need to call the respective "/check" endpoint), but that they are unable to return an error under any circumstances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So as a caller, I should expect either an immediation completion or a delayed completion (which I can then check on via the /check call), but in the case of an error, I *ONLY* get that on the /check call? &amp;nbsp;I'm not understanding why the batch calls wouldn't just return the normal kinds of errors when those errors are easy to determine at the time of the command, or when they would coorespond to whatever kind of operation you would otherwise complete without batching (the kind of case where you would return results instead of a job id).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:20:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/batch-API-endpoints-can-t-return-errors/m-p/231034#M12583</guid>
      <dc:creator>bobdickinson</dc:creator>
      <dc:date>2019-05-29T09:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: batch API endpoints can't return errors?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/batch-API-endpoints-can-t-return-errors/m-p/231037#M12584</link>
      <description>That's correct, the batch endpoints don't return errors themselves. These would only be returned by the check endpoints. I can't speak to why it's constructed this way, but I suspect it's just that the batch endpoints don't use the same mechanism as the non-batch endpoints and the error information isn't available at the time of the first call.</description>
      <pubDate>Thu, 06 Jul 2017 18:18:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/batch-API-endpoints-can-t-return-errors/m-p/231037#M12584</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-06T18:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: batch API endpoints can't return errors?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/batch-API-endpoints-can-t-return-errors/m-p/231041#M12585</link>
      <description>&lt;P&gt;I get that, and that would make total sense if these API endpoints didn't also have the ability to fully complete and return results without batching.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess my point is, if there is some set of circumstances that make the backend say "hey, this one looks easy, I don't need to batch it, I'll just do this real quick and return the result", OK, fine. &amp;nbsp;But if you encounter an error in that case, now all of the sudden that's something that requires a /check to get the completion (failure)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd prefer they not even have the non-batch shortcut return mode&amp;nbsp;and always just made you get the completion (or error) from /check. &amp;nbsp;That would make a lot more sense and make the client code path a lot simpler.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 18:30:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/batch-API-endpoints-can-t-return-errors/m-p/231041#M12585</guid>
      <dc:creator>bobdickinson</dc:creator>
      <dc:date>2017-07-06T18:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: batch API endpoints can't return errors?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/batch-API-endpoints-can-t-return-errors/m-p/231051#M12586</link>
      <description>Thanks for the feedback! I don't know what the specific conditions may be, but I'll send this feedback along to see if we can simplify this in the future.</description>
      <pubDate>Thu, 06 Jul 2017 19:32:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/batch-API-endpoints-can-t-return-errors/m-p/231051#M12586</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-07-06T19:32:12Z</dc:date>
    </item>
  </channel>
</rss>

