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

Nil argument to NSCFString #131

@nikolaigeorgie

Description

@nikolaigeorgie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions