When I try to query data from Parse using curl or .net client application it returns empty results

Posted August 25, 2016 2.9k views
MongoDBGetting StartedDigitalOceanDigitalOcean ArticlesUbuntu 16.04

I followed a guide “How To Host Parse Server” for Ubuntu 14.04 and completed all steps there but can not figure out why parse is returning nothing. Please help

curl -H “X-Parse-Application-Id: MyAppId”
curl -H “X-Parse-Application-Id: MyAppId” http://localhost:1337/parse/classes/Store
both requests above return empty results: {“results”:[]}

If I connect directly to mongodb on the server or connect remotely (using MongoClient) I see that all data is there.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Found what was the problem: did not import _SCHEMA table from previous database.
But now I have a new problem: when I do second query right away after a query server returns: 502 bad gateway. If I wait several seconds, second query works.