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

August 25, 2016 1.8k views
MongoDB Getting Started DigitalOcean DigitalOcean Articles Ubuntu 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" https://mydomainname.com/parse/classes/Store
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.

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.

Have another answer? Share your knowledge.