-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
invalid session token on Parse.Config.get() #3371
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
Comments
@AndresRicardoTorres How did you initialize your server - with client and javascript keys, or only application id and master key? And how are you initializing the Parse client? The master key is not needed to get the Config, only to update it. |
Closing this issue. Make sure you setup the keys correctly in the SDK initialization. If you have any updates about why it's not working, and we verify it's a bug in Parse Server, we'll reopen. |
Server is configured with APP_ID and Master Key:
Client is initialize with (Android):
The issue happens when a cloud is executed and hits the first server, inside the cloud code, we have Our environment runs the parse app in two different EC2 instances behind an Elastic load balancer and the database in other instances. Do we have to configure a cache adapter on this environment ? |
Sometimes I got HTTP 400 and { code: 209, message: 'invalid session token' } when try to get Parse.Config [Parse.Config.get().then(...)] in Cloud Code
I should use master key for get Parse.Config on Cloud Code ?
Environment Setup
Logs/Trace
From ngnix access log
[13/Jan/2017:20:39:50 +0000] "POST /parse/config HTTP/1.1" 400 44 "-" "node-XMLHttpRequest, Parse/js1.9.2 (NodeJS 6.3.1)" "-"
The text was updated successfully, but these errors were encountered: