We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
gcarl
4 years agoExplorer | Level 4
NSURLErrorDomainCode=-1005 with authorizedClient in iOS-App
Dear community,
I developed a cookbook-app for iOS to manage recipes. The app saves the recipe data in a json-file on a Dropbox folder, which can be defined by the user. If photos are linked to...
Greg-DB
Dropbox Community Moderator
4 years agoThat error is being reported by the iOS network client and that "-1005" error code in particular indicates that the network connection was lost.
Does this happen for all users all the time, or only some users/some of the time?
If it only happens sometimes, it may indicate that the network connection was lost for some reason; some of the following may be possible causes:
- if the network connection is lost, such as due to losing WiFi or cellular reception
- if the network connection switches between different interfaces, such as WiFi versus cellular
- if the app is quit during the connection
Those aren't conditions you can control of course, so you may want to add some automatic retrying to handle those.
If this isn't reproducible for all users/devices, it may be specific to the particular network connections of the affected users/devices. In that case, is there anything that may be interfering with HTTPS connections to api-content.dropbox.com on those network connections? For example, firewalls, proxies, VPNs, etc. may be interfering.
gcarl
4 years agoExplorer | Level 4
Dear GregDB,
thanks for the quick reply. As you assumed, it may be linked to the connection issues.
To handle these errors properly, is there a list/description of the different error codes available?
Best regards gcarl
- Greg-DB4 years ago
Dropbox Community Moderator
It looks like Apple has a list of such errors documented here: https://developer.apple.com/documentation/cfnetwork/cfnetworkerrors
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!