Skip to content

Parse Server / IOS - include Key has different results after migration #677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spanapaul opened this issue Feb 26, 2016 · 6 comments
Closed
Labels
type:question Support or code-level question

Comments

@spanapaul
Copy link

The following query works prior to migration but not post migration in MongoLabs for selected records only

PFQuery *drillResultsQuery = [GradingDrillResult query];
[drillResultsQuery whereKey:@"parentEvent" equalTo:self.currentEvent];
[drillResultsQuery includeKey:@"parentDrill"]; //returns no data in the object
[drillResultsQuery includeKey:@"parentPerson"]; // works ok
[drillResultsQuery includeKey:@"parentEventInvite"]; // works ok
[drillResultsQuery orderByAscending:@"firsttName,lastName,parentDrillType"];

Using the parse data browser the link works ok and also in mongoldb the id appears correct. However, the parentDrill data has 0 data elements when queried via parse server and mongoldb

@gfosco
Copy link
Contributor

gfosco commented Feb 26, 2016

If you can troubleshoot this further, that would be great. Run the server with the environment variable VERBOSE=1 and capture the request for the query.

@jackdewhurst
Copy link

I'm having this problem too, "includeKey" on a PFRelation query returns pointers with no data.

If point back from my Heroku Parse Server instance to api.parse.com then the same query works fine on the same database.

@spanapaul
Copy link
Author

My problem turned out to be a data related problem with one record which was created in a previous version. I recreated this record and it worked ok
Paul

On 3 Mar 2016, at 10:05 AM, jackdewhurst [email protected] wrote:

I'm having this problem too, "includeKey" on a PFRelation query returns pointers with no data.

If point back from my Heroku Parse Server instance to parse.com then the same query works fine on the same database.


Reply to this email directly or view it on GitHub #677 (comment).

@ryderjack
Copy link

Same problem as @jackdewhurst. Query returns pointers with no data despite using 'includeKey'.

@drew-gross
Copy link
Contributor

This issue is getting old, and it seems like some people have solved this issue. If you are still seeing this problem, can you open a new issue and include some consistent repro steps?

@Raminder123
Copy link

Hello,
After deployment of parse server to heroku....my app is not running successfully.It always gives me the following error.

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.}

Please help me out here

Thanks
Raminder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

7 participants