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

Nil argument to NSCFString #131

Open
nikolaigeorgie opened this issue Jul 21, 2016 · 0 comments
Open

Nil argument to NSCFString #131

nikolaigeorgie opened this issue Jul 21, 2016 · 0 comments

Comments

@nikolaigeorgie
Copy link

Seeing this issue when attempting to use the Instagram provider:

WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> -[__NSCFString hasPrefix:]: nil argument

Fairly positive I'm using the library correctly (Obviously using my real consumer key and secret):

        SimpleAuth.configuration()["instagram"] = [
            "consumer_key": "<CONSUMER_KEY>",
            "consumer_secret": "<CONSUMER_SECRET>"
        ]

        SimpleAuth.authorize("instagram") { responseObject, error in
            print( \(responseObject))
        }

The view controller that should show the web view pointed at the Instagram login page is presenting but not loading. The crash seems to happen in the -isTargetRedirectURL: method specifically on the line that calls -hasPrefix:.

Would appreciate any help on this issue.

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

1 participant