Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Parse Dashboard with xcode 8

I am learning how to use Parse Dashboard with AWS Amazon Server. I have followed the instructions precisely but the xcode doesn't saveInBackground - nothing appears in the Parse Dashboard and the error is this:

2016-11-20 19:58:21.223 ParseStarterProject-Swift[2902:294330] [Error]: unauthorized (Code: 0, Version: 1.12.0) Optional(Error Domain=Parse Code=0 "unauthorized" UserInfo={error=unauthorized, NSLocalizedDescription=unauthorized, temporary=0}) LINK TO THE FULL LOG: http://dropmefiles.com/fXvRL

Here's my delegate code:

func application(_ application: UIApplication,didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

Parse.enableLocalDatastore()

    let parseConfiguration = ParseClientConfiguration(block: { (ParseMutableClientConfiguration) -> Void in
        ParseMutableClientConfiguration.applicationId = "myappid"
        ParseMutableClientConfiguration.clientKey = "mymasterkey"
        ParseMutableClientConfiguration.server = "http://*****-193.compute-1.amazonaws.com/parse"
    })

    Parse.initialize(with: parseConfiguration)

What can I try to solve the issue? Thanks

like image 765
Anton Platonov Avatar asked Jan 17 '26 05:01

Anton Platonov


1 Answers

The problem was that "Myappid" and "Masterkey" were not generic as the instruction said they would be. They were unique from the beginning and I found them in server.js file.

like image 52
Anton Platonov Avatar answered Jan 19 '26 18:01

Anton Platonov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!