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
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.
You just need to put the correct applicationId and clientKey. They're unique. Go
首先你应该用putty连接你的服务器并按照这个目录:apps - > parse - > htdocs - > server.js在server.js文件中你可以看到“Myappid”和“Masterkey”
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.