<?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: TaskCanceledException in call ListFolderAsync(&amp;quot;/Image/&amp;quot;) with  app xamarin portable in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/TaskCanceledException-in-call-ListFolderAsync-quot-Image-quot/m-p/225806#M12290</link>
    <description>I can't seem to reproduce this using that code, but a TaskCanceledException can occur of the connection times out. How long does it take before this exception occurs for you? Is there anything that may be interfering with your connection to api.dropboxapi.com?</description>
    <pubDate>Wed, 14 Jun 2017 21:49:32 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-06-14T21:49:32Z</dc:date>
    <item>
      <title>TaskCanceledException in call ListFolderAsync("/Image/") with  app xamarin portable</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/TaskCanceledException-in-call-ListFolderAsync-quot-Image-quot/m-p/225798#M12289</link>
      <description>&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var list = await client.Files.ListFolderAsync("/Image/");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00031] in &amp;lt;1c7d529d87ec4bdcbde02e9494f3b5ae&amp;gt;:0
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess (System.Threading.Tasks.Task task) [0x0001c] in &amp;lt;1c7d529d87ec4bdcbde02e9494f3b5ae&amp;gt;:0
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00009] in &amp;lt;1c7d529d87ec4bdcbde02e9494f3b5ae&amp;gt;:0
at Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in &amp;lt;1c7d529d87ec4bdcbde02e9494f3b5ae&amp;gt;:0
at Dropbox.Api.DropboxRequestHandler+SendRpcRequestAsync&amp;gt;d__5`3[TRequest,TResponse,TError].MoveNext () [0x000ba] in &amp;lt;392dfbede5b444369f15cf1eb1323eed&amp;gt;:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3511/501e63ce/source/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00027] in /Users/builder/data/lanes/3511/501e63ce/source/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:176
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3511/501e63ce/source/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3511/501e63ce/source/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in /Users/builder/data/lanes/3511/501e63ce/source/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:357
at POC_DropBox.App+&amp;lt;OnDownloadListaClicked&amp;gt;d__3.MoveNext () [0x00063] in C:\POC\POC_DropBox\POC_DropBox\POC_DropBox\App.cs:62 }&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/TaskCanceledException-in-call-ListFolderAsync-quot-Image-quot/m-p/225798#M12289</guid>
      <dc:creator>Edmara</dc:creator>
      <dc:date>2019-05-29T09:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: TaskCanceledException in call ListFolderAsync("/Image/") with  app xamarin portable</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/TaskCanceledException-in-call-ListFolderAsync-quot-Image-quot/m-p/225806#M12290</link>
      <description>I can't seem to reproduce this using that code, but a TaskCanceledException can occur of the connection times out. How long does it take before this exception occurs for you? Is there anything that may be interfering with your connection to api.dropboxapi.com?</description>
      <pubDate>Wed, 14 Jun 2017 21:49:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/TaskCanceledException-in-call-ListFolderAsync-quot-Image-quot/m-p/225806#M12290</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-14T21:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: TaskCanceledException in call ListFolderAsync("/Image/") with  app xamarin portable</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/TaskCanceledException-in-call-ListFolderAsync-quot-Image-quot/m-p/226075#M12325</link>
      <description>&lt;P&gt;Below is the code, in project ConsoleApplication works perfectly, but cross platform occurs the error.&lt;BR /&gt;I would like to know if someone has already used the ListFolderAsync api in poject portable (cross platform) with Xamarin Android?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;private async void OnDownloadListaClicked()
{
var _accessKey = "&amp;lt;REDACTED&amp;gt;";
using (DropboxClient client = new DropboxClient(_accessKey))
{
//this.ListRootFolder(client);
try
{
bool more = true;
var list = await client.Files.ListFolderAsync("/Image/");
while (more)
{
foreach (var item in list.Entries.Where(i =&amp;gt; i.IsFile))
{
// Process the file
}
more = list.HasMore;
if (more)
{
list = client.Files.ListFolderContinueAsync(list.Cursor).Result;
}
}
}
catch (Exception ex)
{
// Process the exception
}
}
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 19:59:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/TaskCanceledException-in-call-ListFolderAsync-quot-Image-quot/m-p/226075#M12325</guid>
      <dc:creator>Edmara</dc:creator>
      <dc:date>2017-06-16T19:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: TaskCanceledException in call ListFolderAsync("/Image/") with  app xamarin portable</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/TaskCanceledException-in-call-ListFolderAsync-quot-Image-quot/m-p/226207#M12337</link>
      <description>&lt;P&gt;I don't know offhand if anyone has used that method in with&amp;nbsp;Xamarin Android. I unfortunately can't offer help with Xamarin in particular, as that's made by a third party. By the way, it looks like Xamarin publishes their own copy of the library, under "Dropbox v2 API for Xamarin" that you may want to try, if you haven't already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does it take a long time to fail though? That would indicate a timeout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I redacted it from your post, but for the sake of security, you should disable that access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/account/security" target="_blank"&gt;https://www.dropbox.com/account/security&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, you can disable just this access token using the API:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTTP: &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;.NET SDK:&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Auth_Routes_AuthUserRoutes_TokenRevokeAsync.htm" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Auth_Routes_AuthUserRoutes_TokenRevokeAsync.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 20:30:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/TaskCanceledException-in-call-ListFolderAsync-quot-Image-quot/m-p/226207#M12337</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-16T20:30:00Z</dc:date>
    </item>
  </channel>
</rss>

