<?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: -999 &amp;quot;cancelled&amp;quot; Error in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192324#M17655</link>
    <description>&lt;P&gt;A -999 error is &lt;A href="https://developer.apple.com/reference/foundation/1508628-url_loading_system_error_codes/nsurlerrorcancelled?language=objc" target="_self"&gt;NSURLErrorCancelled&lt;/A&gt;, which is documented as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Returned when an asynchronous load is canceled.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you check if your app is accidentally calling .cancel() on the request by any chance?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, I can't seem to reproduce this, so can you let us know:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the code snippet you're using to reproduce this&lt;/LI&gt;
&lt;LI&gt;the version(s) of iOS you're seeing this with&lt;/LI&gt;
&lt;LI&gt;the version(s) of Xcode you're seeing this with&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2016 22:37:24 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-10-27T22:37:24Z</dc:date>
    <item>
      <title>-999 "cancelled" Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192322#M17654</link>
      <description>&lt;P&gt;API: SwiftyDropbox version 4.1.0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever the&amp;nbsp;&lt;SPAN&gt;client.files.listFolder endpoint is execute the following error message is received:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=&lt;A href="https://api.dropbox.com/2/files/list_folder" target="_blank"&gt;https://api.dropbox.com/2/files/list_folder&lt;/A&gt;, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=&lt;A href="https://api.dropbox.com/2/files/list_folder" target="_blank"&gt;https://api.dropbox.com/2/files/list_folder&lt;/A&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I am able to authenticate but cannot successfully execute any endpoints. &amp;nbsp;Any idea what generates this error? &amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:11:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192322#M17654</guid>
      <dc:creator>Bill P.3</dc:creator>
      <dc:date>2019-05-29T09:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: -999 "cancelled" Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192324#M17655</link>
      <description>&lt;P&gt;A -999 error is &lt;A href="https://developer.apple.com/reference/foundation/1508628-url_loading_system_error_codes/nsurlerrorcancelled?language=objc" target="_self"&gt;NSURLErrorCancelled&lt;/A&gt;, which is documented as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Returned when an asynchronous load is canceled.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you check if your app is accidentally calling .cancel() on the request by any chance?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, I can't seem to reproduce this, so can you let us know:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the code snippet you're using to reproduce this&lt;/LI&gt;
&lt;LI&gt;the version(s) of iOS you're seeing this with&lt;/LI&gt;
&lt;LI&gt;the version(s) of Xcode you're seeing this with&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 22:37:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192324#M17655</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-27T22:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: -999 "cancelled" Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192368#M17656</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for the quick response!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Code Snippet:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;import UIKit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;import SwiftyDropbox&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;class ViewController: UIViewController {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; let accessToken = “not shown but is valid"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; override func viewDidLoad() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super.viewDidLoad()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; @IBAction func button1Pressed(_ sender: UIButton) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let client = DropboxClient(accessToken: accessToken)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; client.files.listFolder(path: "").response { response, error in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DispatchQueue.main.async() { guard error == nil else { return }&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;iOS Version:&amp;nbsp;&lt;/STRONG&gt;10.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Xcode Version:&lt;/STRONG&gt;&amp;nbsp;8.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Additional information:&lt;/STRONG&gt; This endpoint was initially working in another project but then stopped working returning&amp;nbsp;the same error message. &amp;nbsp;Now, whenever a new project is created the error message is returned on all endpoints. &amp;nbsp;Any suggestions on areas I can&amp;nbsp;investigate? &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:16:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192368#M17656</guid>
      <dc:creator>Bill P.3</dc:creator>
      <dc:date>2016-10-28T13:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: -999 "cancelled" Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192401#M17657</link>
      <description>&lt;P&gt;Thanks, that's helpful! It looks like the issue here is that you're building the client inside the IBAction, and it's going out scope before the API call can finish. Trying defining your client outside the IBAction so that it doesn't get lost.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 18:28:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192401#M17657</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-28T18:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: -999 "cancelled" Error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192464#M17658</link>
      <description>&lt;P&gt;That was the problem. &amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2016 22:08:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/999-quot-cancelled-quot-Error/m-p/192464#M17658</guid>
      <dc:creator>Bill P.3</dc:creator>
      <dc:date>2016-10-29T22:08:03Z</dc:date>
    </item>
  </channel>
</rss>

