0

我正在尝试设置我的 iOS 应用程序,以便可以在 heroku 上使用解析数据库。在我的应用程序中,我写道:

 func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    // Enable storing and querying data from Local Datastore.
    // Remove this line if you don't want to use Local Datastore features or want to use cachePolicy.
    Parse.enableLocalDatastore()

    let parseConfiguration = ParseClientConfiguration(block: { (ParseMutableClientConfiguration) -> Void in
        ParseMutableClientConfiguration.applicationId = "insta95222295"
        ParseMutableClientConfiguration.clientKey = "asdfsdfj@#$543sd"
        ParseMutableClientConfiguration.server = "https://insta9522.herokuapp.com/parse"

    })

    Parse.initializeWithConfiguration(parseConfiguration)

当我运行它时,我收到以下错误:

>Object has been saved. 
>2016-10-14 00:50:49.984 ParseStarterProject-Swift[9199:231387] [Error]: Failed to run command eventually with error: Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
4

1 回答 1

0

PARSE_MOUNT转到您的 Heroku 仪表板,在“设置”选项卡中,确保您已将/parse

在此处输入图像描述

于 2016-10-16T07:52:18.020 回答