parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.7k stars 4.76k forks source link

Run parse server #9105

Closed softreigns closed 2 months ago

softreigns commented 2 months ago

Issue Description

Steps to reproduce

Followed instruction to run parse servce locally.

$ git clone https://github.com/parse-community/parse-server $ cd parse-server $ docker build --tag parse-server . $ docker run --name my-mongo -d mongo

$ docker run --name my-parse-server s -p 1337:1337 --link my-mongo:mongo -d parse-server --appId myAppId --masterKey myMasterKey --databaseURI mongodb://mongo/test

$ curl -X POST \ -H "X-Parse-Application-Id: APPLICATION_ID" \ -H "Content-Type: application/json" \ -d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' \ http://localhost:1337/parse/classes/GameScore

Actual Outcome

curl -X POST \ -H "X-Parse-Application-Id: myAppId" \ -H "Content-Type: application/json" \ -d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' \ http://localhost:1337/parse/classes/GameScore {"code":119,"error":"This user is not allowed to access non-existent class: GameScore"}%

Expected Outcome

{ "objectId": "2ntvSpRGIK", "createdAt": "2016-03-11T23:51:48.050Z" }

Environment

local, parse server: 7.0.0 mac OS, intell Database Mongo db docker image.

Client curl

Logs

2024-04-25 13:52:16 warn: DeprecationWarning: The Parse Server option 'encodeParseObjectInCloudFunction' default will change to 'true' in a future version. 2024-04-25 13:52:16 2024-04-25 13:52:16 [1] parse-server running on http://localhost:1337/parse 2024-04-25 13:52:19 error: This user is not allowed to access non-existent class: GameScore {"code":119,"stack":"Error: This user is not allowed to access non-existent class: GameScore\n at /parse-server/lib/RestWrite.js:174:15\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"}

parse-github-assistant[bot] commented 2 months ago

Thanks for opening this issue!

thphuc commented 2 months ago

Did you create GameScore class? @softreigns

mtrezza commented 2 months ago

I'm closing this as it does not seem to be a Parse Server issue.

Feel free to comment if you have any new information and we can re-open this issue.