Skip to content

JSON.parse() error on Object.destroy() #747

@howardwkim

Description

@howardwkim

[email protected]
[email protected]

When I call .destroy(), I receive SyntaxError: Unexpected token b in JSON at position 0.
The object is destroyed on the server and the app still functions as expected, but I keep getting the error.

The error comes from a JSON.parse() located at parse/lib/react-native/LocalDatastoreController.react-native.js:65.
The key for Parse/MY-PARSE-APP-ID/installationId returns a string without curly brackets (like b94c0ed9-4a24-49af-b57b-d48e6a230db1 ).

Is this a bug in the code? Am I setting something incorrectly? Thanks!

Some of my code for setting up Parse:

import Parse from 'parse/react-native';
import { AsyncStorage } from 'react-native';
...

Parse.setAsyncStorage(AsyncStorage);

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