Skip to content

If you're getting a null NSURLResponse #8

@lipidfish

Description

@lipidfish

This one had me hung up for a while. In [SonosDiscovery discoverControllers]the NSURLSession produced a null NSURLResponse, even though pasting the URL into a browser produced a valid response.

This is because in iOS 9, the default behavior is to not allow clear-text HTTP sessions. Since the URL starts with http://, (i.e. not https://), there will be no response sent back, and the NSError object contains a message alerting you to this.

To work around this, see this article

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