Skip to content

JSON text did not start with array or object and option to allow fragments not set. #2517

Closed
@shawn458

Description

@shawn458

Problem

I am getting the following response when I try to call [PFCloud callFunctionInBackground:] in my iOS app.

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.

My configuration in the AppDelegate looks like:
[Parse initializeWithConfiguration:[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) { configuration.applicationId = @"MY0PjsEc4aLZaWWoiYPnb4cju4VoKN7zyR41FPnR"; configuration.server = @"https://myappname.herokuapp.com/parse"; }]];

The interesting thing is Parse.Cloud.beforeSave function works as expected. Only when I am requested data back this issue appears.

Environment Setup

  • Server
    • parse-server version: 2.2.17
    • npm version: 3.8.6
    • node version: 4.3
    • parse-dashbboard version: 1.0.15
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Heroku
  • Database
    • MongoDB version: 3.0.9
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): mLab

Any help is appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions