parse-server-example icon indicating copy to clipboard operation
parse-server-example copied to clipboard

The data couldn’t be read because it isn’t in the correct format

Open a9austin opened this issue 10 years ago • 0 comments

I recently updated to the latest parse-server and now I am receiving this error when making using the parse framework on iOS. Before updating, I had no issues.

The data couldn’t be read because it isn’t in the correct format.

0 "NSDebugDescription" : "JSON text did not start with array or object and option to allow fragments not set."

AppDelegate - iOS connecting to Parse Server

 let parseConfiguration = ParseClientConfiguration(block: { (ParseMutableClientConfiguration) -> Void in
        ParseMutableClientConfiguration.applicationId = parseDevAppId
        ParseMutableClientConfiguration.clientKey = parseDevClientKey
        ParseMutableClientConfiguration.server = "https://shrouded-hamlet-72602.herokuapp.com/parse"       
    })

Parse Server - index.js

 var api = new ParseServer({
      databaseURI: databaseUri || 'mongodb://xxxx:[email protected]:11800/heroku_7lvswj5s',
      cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
      appId: process.env.APP_ID || 'parseDevAppId',
      masterKey: 'xxxxxxx', //Add your master key here. Keep it secret!
      serverURL: process.env.SERVER_URL || 'https://shrouded-hamlet-72602.herokuapp.com/parse',  // Don't forget to change to https if needed
      clientKey: 'parseDevClientKey'
    });

Versions

Parse Server - 2.2.4

iOS Parse Framework - 1.13

Please let me know if you need any more information or if you are confused about my question! Thanks!

a9austin avatar Mar 31 '16 20:03 a9austin