Reputation: 389
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
Upvotes: 3
Views: 274
Reputation: 11
first you should connect to your server with putty and follow this directory : apps-->parse-->htdocs-->server.js in server.js file you can see "Myappid" and "Masterkey"
Upvotes: 0
Reputation: 49
You just need to put the correct applicationId and clientKey. They're unique. Go
Upvotes: 0
Reputation: 389
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.
Upvotes: 1