parse-community / parse-server

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

Scalable LiveQuery server - Unable to get message from subscription #7573

Closed BanalitoRaulito closed 3 years ago

BanalitoRaulito commented 3 years ago

New Issue Checklist

Issue Description

Unable to get message from subscription (client/utils/initialize.js line: 22)

Steps to reproduce

  1. clone git https://github.com/BanalitoRaulito/Scalable-Parse-LiveQuery-Server
  2. follow README (docker-compose up --build)
  3. navigate to localhost:3000
  4. type something to input and click "Add todo"

Actual Outcome

I don't get console log after adding new item (from client/utils/initialize.js line: 22)

Expected Outcome

I expected to get console log after adding new item (from client/utils/initialize.js line: 22)

Environment

Server

Database

Client

Logs

LiveQuery server: "info: Create new client: 19f08667-e7a1-456a-a138-5fe5ec9bc9e9"

parse-github-assistant[bot] commented 3 years ago

Thanks for opening this issue!

mtrezza commented 3 years ago

Could you describe the steps based on the original repository? We don't know which customizations you my have in your fork. Probably the easiest way to demo the issue would be to create a PR with a failing test.

uzaysan commented 3 years ago

I've faced this issue before. When you run multiple parse-server behind the load balancer, you need to specify a redis server in order to parse servers to communicate with each other.

ParseServer.createLiveQueryServer(httpServer,{
  redisURL: 'redis://username:password@server-adress'
});
mtrezza commented 3 years ago

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

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