Skip to content

Error on every Parse.Query.find call from the cloud #705

Closed
@astanton

Description

@astanton

On my startup of my app I am hitting 2 separate cloud calls. Both of the functions return errors, and I've narrowed it down to the query.find() in my cloud code for both methods.

When I get back to the iOS client, I'm getting a Parse error code 141.

But when I'm in the error callback on the server side of things, the object that is returned in there is

{ 
  code: undefined,
  message: unauthorized
}

A little bit more information, as I just added the VERBOSE=1 environment variable. On the calls that are erroring, I get the following message:

error: ParseError { code: 141, message: undefined }

And another thing, I am making calls on the client to the database with PFObject.saveInBackground calls, as well as getting with the PFQuery.getFirstObjectInBackgroundWithBlock calls, so that seems to be working. It's only when trying to do it from the cloud code that appears to be not working.

So I'm wondering if I just completely botched something when setting this up possibly since it's saying I'm unauthorized to query, even though the parse server is running.

My DB is hosted on mongoLab and I have been able to hit it via the CURL methods so the URL is correct.

Any ideas

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