Parse-sdk-ios-osx: Parse Query always returns Error NSCocoaErrorDomain 3840 on iOS 7

Created on 21 Oct 2015  路  10Comments  路  Source: parse-community/Parse-SDK-iOS-OSX

After upgrading my production app to Parse iOS SDK 1.9.0, the first Parse query the app executes returns the above error with this description:
JSON text did not start with array or object and option to allow fragments not set.

The app works fine on iOS 8.x and iOS 9.x. The error only happens on iOS 7.x. But it happens everytime on every device.

I have found a similar thread in the Parse Developers forum:
https://groups.google.com/forum/#!searchin/parse-developers/JSON$20text$20did$20not$20start$20with$20array$20or$20object$20and$20option$20to$20allow$20fragments$20not$20set/parse-developers/k2rP33XccBg/cHLs0xp3CgAJ

Duplicate

Most helpful comment

I'm facing this issue in SDK 1.12.0. I started facing this issue by migrating code from api.parse.com to parse server hosted at Heroku. Is working fine with api.parse.com

All 10 comments

Same error for me on iOS 7:

Failed to run command eventually with error:
Error Domain=NSCocoaErrorDomain
Code=3840
"The operation couldn鈥檛 be completed. (Cocoa error 3840.)"
(JSON text did not start with array or object and option to allow fragments not set.)
UserInfo=0x15f1f4d0
{
    NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.
}

When I try this code:

let installation = PFInstallation.currentInstallation()
installation["key"] = "value"
installation.saveEventually()

Feedback on this? This is a major production issue!

This definitely seems wrong. I'll see if something recently changed with our JSON parsing, and let you know what I find.

Duplicate of #388, fixed in 1.9.1, which is releasing soon.

Thank you, I'm relieved to hear that.
However, I currently have a production app that now 15% of my users are completely blocked out of. This is a horrible situation for my business!
What is the release date for 1.9.1? Does soon mean tomorrow? Or next week?

Ideally later today, barring no setbacks. No promises however.

Hai guys , me too face this same error for ios7
Error Domain=NSCocoaErrorDomain
Code=3840
"The operation couldn鈥檛 be completed. (Cocoa error 3840.)"
(JSON text did not start with array or object and option to allow fragments not set.)

Please help me out from this. when 1.9.1 will release?

Already released --> https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/tree/1.9.1
Thanks for this release, Parse Team.

Thanks wavs, updated...

I'm facing this issue in SDK 1.12.0. I started facing this issue by migrating code from api.parse.com to parse server hosted at Heroku. Is working fine with api.parse.com

Was this page helpful?
0 / 5 - 0 ratings