Forum Discussion

Pablo78's avatar
Pablo78
Explorer | Level 3
8 years ago
Solved

OSStatus error -10814 when trying DBRoulette app

Hi,

 

I'm currently trying to run the DBRoulette app in I always have the following errors.

 

2017-12-13 21:42:39.916165+0100 DBRoulette[20354:830384] -canOpenURL: failed for URL: "dbapi-2://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

2017-12-13 21:42:39.917405+0100 DBRoulette[20354:830384] -canOpenURL: failed for URL: "dbapi-8-emm://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

 

I use XCode 9.2 and I followed instructions on https://github.com/dropbox/dropbox-sdk-obj-c

I mean creating a Dropbox app, getting the APP_KEY, running pod update, modifying info.plist...

 

From the forums it seems I'm not using the official DP SDK, but I'm running the sample wih ObjectiveDropboxOfficial...

 

Any idea?

 

Thanks

  • Thanks! I've seen that happen when the Dropbox web site isn't allowed on the device due to website restrictions:

     

    Settings > General > Restrictions > Websites

     

    Can you try disabling that restriction and let me know if that helps?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    The 10814 errors themselves are expected if the official Dropbox app isn't installed, so they're safe to ignore. The SDK should automatically fall back to processing the app authorization flow in Safari in that case. (More specifically, it should present a SFSafariViewController with the OAuth 2 app authorization flow on the Dropbox web site.)

    Is that part not working for you?
    • Pablo78's avatar
      Pablo78
      Explorer | Level 3

      Indeed when I click on the link "Link to Dropbox account" in the view "Link Account" I see the Safari page loaded with www.dropbox.com, then after a couple of seconds it comes back to the view "Link Account".

       

      I also have the following message in the console:

       

      2017-12-13 22:12:35.334618+0100 DBRoulette[21151:877961] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction

       

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff
        That console message is unrelated to this flow and can also be ignored.

        When you tap "Link to Dropbox account" you should be presented with the Dropbox log in page, or the app authorization page if already logged in. This is working properly for me.

        What version of the Dropbox SDK do you have installed, and have you made any modifications to the DBRoulette app?