-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
LiveQuery server error: Can not fetch userId for sessionToken #4124
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
A few questions that might help understanding the issue: Did it use to work and stopped? |
I have 2 configurations for the application: a dev and a prod environment. I have a Parse Server instance, a LiveQuery Server instance and a redis server instance for the dev environment and the same configuration again for the prod environment. This is not the first time I'm doing this and all my other apps configured like this are working well. I tried something this morning: I stopped the prod LiveQuery Server, and updated the dev LiveQuery server configuration to work for the prod environment. But if I use the prod LiveQuery server that I stopped, for the dev environment (with its configuration updated to work in the dev environment), the error that I got is now appearing in the dev environment. So my feeling is that there is something wrong in this specific LiveQuery server but I don't know what because it is exactly the same code as the other one, except for the parse keys and server/redis urls. Another thing that I observed is that this error is happening for classes being secured. |
I will continue to investigate and let you know what I find. |
@ndominati-luna any update? |
See #411 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Issue Description
We are using a live query server with our parse server.
We don't understand what's happening, but only for 1 out of 5 classes for which we activated the live queries in the server configuration all is working well.
For the other classes, we are getting this error instead of being reached on mobile side by the websocket events:
error: Can not fetch userId for sessionToken "r:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", error {"message":"unauthorized"}
We're not able to find anything on the Internet explaining us why this error is raised.
Environment Setup
Server
Database
Logs/Trace
error: Can not fetch userId for sessionToken "r:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", error {"message":"unauthorized"}
Our application is currently in production and the chat mechanism is broken because of this.
Do you have an idea about the reason making the error raised?
Many thanks in advance.
The text was updated successfully, but these errors were encountered: