Skip to content

iOS Swift 403 issue in Xcode and crashes #1600

Closed
@gateway

Description

@gateway

Check out this issue for an ideal bug report. The closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!

For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Environment Setup

Parse Server running on Heroku

swift code added to AppDelegate.swift

    Parse.initializeWithConfiguration(ParseClientConfiguration(block: { (configuration: ParseMutableClientConfiguration) -> Void in
        configuration.server = "https://xxx.herokuapp.com/parse/" // '/' important after 'parse'
        configuration.applicationId = "xxxxx"
        configuration.clientKey = "xxx"
    }))

Code taken from Parse Server Example, and not clear if you need client key since it says its optional on the parse server git readme. (we need some clarification)

When running the code I see at the bottom of xcode

2016-04-22 12:47:00.940 xxx[8414:4911444] [Error]: Response status code was unacceptable: 403 (Code: 1, Version: 1.13.0)
fatal error: unexpectedly found nil while unwrapping an Optional value
(lldb) 

Steps to reproduce

Logs/Trace

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions