Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Bob S.15
9 years agoCollaborator | Level 9
usersRoutes getCurrentAccount not returning
Hello, 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? In trying...
Greg-DB
Dropbox Community Moderator
9 years agoHi 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.
Can you let me know:
- the version of the SDK you're using
- the version(s) of iOS you're seeing this with
- the code you're using to reproduce this
- how long you're waiting for the response (before reconnecting the modem)
Thanks in advance!
Can you let me know:
- the version of the SDK you're using
- the version(s) of iOS you're seeing this with
- the code you're using to reproduce this
- how long you're waiting for the response (before reconnecting the modem)
Thanks in advance!
- Bob S.159 years agoCollaborator | Level 9
Hey Greg,
- How can I tell the SDK version? I think it is 3.0.11 because I have this for my Cartfile: “github "https://github.com/dropbox/dropbox-sdk-obj-c" == 3.0.11”
I think I have that because it is the last version to support iOS 8, is that correct?
- the iOS version is 10.3.1
- this is the code:
-(void)getDropboxAccountData:(UIViewController *)VC { [[[DBClientsManager authorizedClient].usersRoutes getCurrentAccount] setResponseBlock:^(DBUSERSFullAccount *account, DBNilObject *_, DBRequestError *error) { printf("getCurrentAccount returned"); if (account) { NSLog(@"%@", account); [self loadedDropboxAccountInfo:account.name.displayName]; } else if (error) { [self loadDropboxAccountInfoFailed]; NSLog(@"%@", error); } }]; }- I waited 5 minutes without a response, should it take that long?
Thanks
Bob
- Greg-DB9 years ago
Dropbox Community Moderator
Thanks! Yes, 3.0.11 is the version number I'm looking for.
And 5 minutes should have been sufficient for it to time out. (I believe the default timeout is 60 seconds.)
We're looking into it.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!