keepassium / KeePassium

KeePass-compatible password manager for iOS
https://keepassium.com
Other
1.2k stars 103 forks source link

Dropbox API connection fails with error -1005 "Network connection was lost" #377

Closed keepassium closed 4 months ago

keepassium commented 4 months ago

Description When trying to save a database on direct Dropbox connection, saving fails with "Network connection was lost" error:

Task <8D47C28F-8AF3-4C74-9CC7-6DF86179611B>.<5> finished with error [-1005] 
Error Domain=NSURLErrorDomain 
Code=-1005 "The network connection was lost." 

UserInfo={
  _kCFStreamErrorCodeKey=57, 
  NSUnderlyingError=0x600000c7a2e0 {
    Error Domain=kCFErrorDomainCFNetwork 
    Code=-1005 "(null)" 
    UserInfo={
      NSErrorPeerAddressKey=<CFData 0x600002646b80 [0x1e4876d80]>{
        length = 28, 
        capacity = 28, 
        bytes = 0x1c1e01bb000000002620010060220014 ... a27d420e00000000
      }, 
      _kCFStreamErrorCodeKey=57, 
      _kCFStreamErrorDomainKey=1
    }
  }, 
  _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <8D47C28F-8AF3-4C74-9CC7-6DF86179611B>.<5>, 
  _NSURLErrorRelatedURLSessionTaskErrorKey=("LocalDataTask <8D47C28F-8AF3-4C74-9CC7-6DF86179611B>.<5>"), 
  NSLocalizedDescription=The network connection was lost., 
  NSErrorFailingURLStringKey=https://content.dropboxapi.com/2/files/download, 
  NSErrorFailingURLKey=https://content.dropboxapi.com/2/files/download, 
  _kCFStreamErrorDomainKey=1
}

How to reproduce Steps to reproduce the behavior:

  1. Databases → Connect to Server → Dropbox → add a database
  2. Open the database
  3. Edit any group/entry, tap "Done" to save changes
  4. Observe the error

Expected behavior Changes should be saved without errors.

Environment:

Additional context

Same issue reported by Joplin dev: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/GET-request-to-files-download-fails-with-quot-The-network/td-p/768270