Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

The operation couldn’t be completed. (OSStatus error -10814.) #34

Open
evgeniyd opened this issue Jul 22, 2020 · 2 comments
Open

The operation couldn’t be completed. (OSStatus error -10814.) #34

evgeniyd opened this issue Jul 22, 2020 · 2 comments

Comments

@evgeniyd
Copy link

If you are filing a bug report, please include information for the topics below. Also, please make sure to only report one bug/feature request/question per issue.

Description

I am getting The operation couldn’t be completed. (OSStatus error -10814.) upon trying to login. I suspect the setup around URI is wrong. It fails with web browser and iOS app.

Versions

iOS SDK version: 0.1.6
Spotify app version (if native SSO flow is involved): 8.5.66.762

Severity

Trivial

Steps to Reproduce

  1. Add URI to Spotify dev dashboard myappmedia:// and myappmedia://callback
  2. Setup the URI Types in Xcode project with URL Schemes: myappmedia
  3. Add the following code to AppDelegate.swift:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        SpotifyLogin.shared.configure(clientID: "aaa123", clientSecret: "bbb123", redirectURL: URL(string: "myappmedia://callback")! ) 
        return true
    }

, where "aaa123" and "bbb123" are real clientID and clientSecret respectively.

  1. Build and run, try to sign in with Facebook login
  2. Web page with the scope of permissions is presented
  3. Press AGREE

Actual behaviour

Get The operation couldn’t be completed. (OSStatus error -10814.) error after pressing Sign In button, and them after pressing AGREE nothing happens.

Expected behaviour

Successful sign in

Logs

2020-07-21 23:11:59.790846-0700 MyApp-iOS[70870:5832280] -canOpenURL: failed for URL: "spotify-action://authorize?utm_campaign=spotifylogin&show_dialog=true&nosignup=true&utm_medium=spotifylogin&scope=playlist-read-private%20playlist-read-collaborative%20playlist-modify-public%20playlist-modify-private&redirect_uri=myappmedia%3A%2F%2Fcallback&response_type=code&client_id= aaa123&nolinks=true&utm_source=spotify-sdk" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
@tomaculum
Copy link
Contributor

Please try to add the key LSApplicationQueriesSchemes to your info.plist with following values: spotify, spotify-action, myappmedia.

Bildschirmfoto 2020-07-22 um 10 02 43

@dglaser2
Copy link

dglaser2 commented Jan 5, 2021

I am experiencing the same issue. Would appreciate any advice on how to fix this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants