Skip to content

{"error":"unauthorized"} #6842

@DevDorrejo

Description

@DevDorrejo

New Issue Checklist

Issue Description

when try to test the instance:

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

Got: {"error":"unauthorized"}

Steps to reproduce

Run the next docker script

docker stop parse-server && docker rm parse-server

docker run -t
-d
--name parse-server
--network=host
parseplatform/parse-server
--appName Test-Sync
--appId 7952e301430f8298150c2fee
--masterKey 7c123bddb64af9b3afbf96c9
--clientKey c98d9050af40d700234dcf4f
--fileKey b41dedd9ebd5db1353a1b0e9
--javascriptKey c46ae6a339545e3f39e9bead
--restAPIKey 3f4bc0608db8f8d4a14cf0c9
--verbose=1
--databaseURI postgres://wedc:password@localhost/parse
--serverURL http://localhost:1337/parse
--publicServerURL http://wedc-parse.duckdns.org:1337/parse

Sent from the terminal:

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

Actual Outcome

{"error":"unauthorized"}

Expected Outcome

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

Environment

Docker:latest

Server

  • Parse Server version: Docker
  • Operating system: openSUSe Leap 15.2
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local

Database

  • System (MongoDB or Postgres): Postgres
  • Database version: 12
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local_Host

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): none
  • SDK version: none

Logs

docker logs parse-server
allowClientClassCreation: true
appId: 7952e301430f8298150c2fee
appName: Test-Sync
cacheMaxSize: 10000
cacheTTL: 5000
clientKey: c98d9050af40d700234dcf4f
customPages: {}
databaseURI: postgres://wedc:password@localhost/parse
enableAnonymousUsers: true
expireInactiveSessions: true
fileKey: b41dedd9ebd5db1353a1b0e9
graphQLPath: /graphql
host: 0.0.0.0
idempotencyOptions: {"ttl":300,"paths":[]}
javascriptKey: c46ae6a339545e3f39e9bead
logsFolder: ./logs
masterKey: REDACTED
masterKeyIps: []
maxUploadSize: 20mb
mountPath: /parse
objectIdSize: 10
playgroundPath: /playground
port: 1337
protectedFields: {"_User":{"*":["email"]}}
publicServerURL: http://wedc-parse.duckdns.org:1337/parse
restAPIKey: 3f4bc0608db8f8d4a14cf0c9
revokeSessionOnPasswordReset: true
schemaCacheTTL: 5000
serverURL: http://localhost:1337/parse
sessionLength: 31536000
verbose: true
allowCustomObjectId: false
collectionPrefix:
directAccess: false
enableExpressErrorHandler: false
enableSingleSchemaCache: false
mountGraphQL: false
mountPlayground: false
preserveFileName: false
preventLoginWithUnverifiedEmail: false
scheduledPush: false
verifyUserEmails: false
jsonLogs: false
level: undefined

[1] parse-server running on http://localhost:1337/parse

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions