<?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: usersRoutes getCurrentAccount not returning in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/229941#M12509</link>
    <description>&lt;P&gt;Hey Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- How can I tell the SDK version?&amp;nbsp; I think it is 3.0.11 because I have this for my Cartfile: “github "&lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-obj-c&lt;/A&gt;" == 3.0.11”&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think I have that because it is the last version to support iOS 8, is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- the iOS version is 10.3.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- this is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;-(void)getDropboxAccountData:(UIViewController *)VC&amp;nbsp; {
&amp;nbsp;&amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; [[[DBClientsManager authorizedClient].usersRoutes getCurrentAccount] setResponseBlock:^(DBUSERSFullAccount *account, DBNilObject *_, DBRequestError *error) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("getCurrentAccount returned");
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (account) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"%@", account);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [self loadedDropboxAccountInfo:account.name.displayName];
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else if (error) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [self loadDropboxAccountInfoFailed];
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"%@", error);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; }];
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I waited 5 minutes without a response, should it take that long?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2017 18:13:13 GMT</pubDate>
    <dc:creator>Bob S.15</dc:creator>
    <dc:date>2017-06-29T18:13:13Z</dc:date>
    <item>
      <title>usersRoutes getCurrentAccount not returning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/229725#M12485</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; I'm trying to track down a sporadic issue that occurs when access to an internet connection is sporadic, or maybe when there's a Wifi Network but it requires a security login? &amp;nbsp;In trying to reproduce this error, I am leaving my router on but turning off the cable modem to see if that will cause the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;DBClientsManager&lt;/SPAN&gt; &lt;SPAN&gt;authorizedClient&lt;/SPAN&gt;&lt;SPAN&gt;] is non-nil, I guess because it remembers that the user was already logged in. &amp;nbsp;Then it tries this call:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[[[&lt;/SPAN&gt;&lt;SPAN&gt;DBClientsManager&lt;/SPAN&gt; &lt;SPAN&gt;authorizedClient&lt;/SPAN&gt;&lt;SPAN&gt;].&lt;/SPAN&gt;&lt;SPAN&gt;usersRoutes&lt;/SPAN&gt; &lt;SPAN&gt;getCurrentAccount&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;setResponseBlock&lt;/SPAN&gt;&lt;SPAN&gt;:^(&lt;/SPAN&gt;&lt;SPAN&gt;DBUSERSFullAccount&lt;/SPAN&gt;&lt;SPAN&gt; *account, &lt;/SPAN&gt;&lt;SPAN&gt;DBNilObject&lt;/SPAN&gt;&lt;SPAN&gt; *_, &lt;/SPAN&gt;&lt;SPAN&gt;DBRequestError&lt;/SPAN&gt;&lt;SPAN&gt; *error).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've got a debugger breakpoint set inside the response block, and when there's no connection to the internet, this function just doesn't ever seem to return at all. &amp;nbsp;Is that expected? &amp;nbsp;Shouldn't I get an error in the response block? &amp;nbsp;If I reconnect the modem then the function finally does enter the response block.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/229725#M12485</guid>
      <dc:creator>Bob S.15</dc:creator>
      <dc:date>2019-05-29T09:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: usersRoutes getCurrentAccount not returning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/229918#M12503</link>
      <description>Hi Bob, the expected behavior here should be either an immediate error indicating the lack of network connection, or a delayed error indicating the request timed out, depending on exactly how it failed.&lt;BR /&gt;&lt;BR /&gt;Can you let me know:&lt;BR /&gt;- the version of the SDK you're using&lt;BR /&gt;- the version(s) of iOS you're seeing this with&lt;BR /&gt;- the code you're using to reproduce this&lt;BR /&gt;- how long you're waiting for the response (before reconnecting the modem)&lt;BR /&gt;&lt;BR /&gt;Thanks in advance! &lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jun 2017 16:55:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/229918#M12503</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-29T16:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: usersRoutes getCurrentAccount not returning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/229941#M12509</link>
      <description>&lt;P&gt;Hey Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- How can I tell the SDK version?&amp;nbsp; I think it is 3.0.11 because I have this for my Cartfile: “github "&lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-obj-c&lt;/A&gt;" == 3.0.11”&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think I have that because it is the last version to support iOS 8, is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- the iOS version is 10.3.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- this is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;-(void)getDropboxAccountData:(UIViewController *)VC&amp;nbsp; {
&amp;nbsp;&amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; [[[DBClientsManager authorizedClient].usersRoutes getCurrentAccount] setResponseBlock:^(DBUSERSFullAccount *account, DBNilObject *_, DBRequestError *error) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("getCurrentAccount returned");
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (account) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"%@", account);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [self loadedDropboxAccountInfo:account.name.displayName];
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else if (error) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [self loadDropboxAccountInfoFailed];
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"%@", error);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; }];
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I waited 5 minutes without a response, should it take that long?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 18:13:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/229941#M12509</guid>
      <dc:creator>Bob S.15</dc:creator>
      <dc:date>2017-06-29T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: usersRoutes getCurrentAccount not returning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/230108#M12522</link>
      <description>&lt;P&gt;Thanks! Yes,&lt;SPAN&gt;&amp;nbsp;3.0.11 is the version number I'm looking for.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And 5 minutes should have been sufficient for it to time out. (I believe the default timeout is 60 seconds.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We're looking into it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 18:27:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/230108#M12522</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-30T18:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: usersRoutes getCurrentAccount not returning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/266956#M15675</link>
      <description>&lt;P&gt;Apologies for the delay. This should be fixed in &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/releases/tag/3.6.0" target="_self"&gt;v3.6.0&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 21:17:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/usersRoutes-getCurrentAccount-not-returning/m-p/266956#M15675</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-02-28T21:17:15Z</dc:date>
    </item>
  </channel>
</rss>

