Anton Platonov Anton Platonov - 15 days ago 14
iOS Question

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

Answer

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.