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

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

@evgeniyd

Description

@evgeniyd

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.)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions