tlaverdure / laravel-echo-server

Socket.io server for Laravel Echo
MIT License
2.65k stars 511 forks source link

UnhandledPromiseRejectionWarning: Redis could not subscribe #577

Closed tcagkansokmen closed 3 years ago

tcagkansokmen commented 3 years ago

I can't listen Redis (that I host on another hosting).

Unhandled error event: MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details.
.....
UnhandledPromiseRejectionWarning: Redis could not subscribe.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:19679) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch()
.....

My config is like below;

{
    "authHost": "http://event.test",
    "authEndpoint": "/broadcasting/auth",
    "clients": [],
    "database": "redis",
    "databaseConfig": {
    "redis" : {
      "port": "25061",
      "host": "blablablabla.db.ondigitalocean.com",
            "password": "XxxXXXx"
    },
        "sqlite": {
            "databasePath": "/database/laravel-echo-server.sqlite"
        }
    },
    "devMode": true,
    "host": null,
    "port": "6001",
    "protocol": "http",
    "socketio": {},
    "secureOptions": 67108864,
    "sslCertPath": "",
    "sslKeyPath": "",
    "sslCertChainPath": "",
    "sslPassphrase": "",
    "subscribers": {
        "http": true,
        "redis": true
    },
    "apiOriginAllow": {
        "allowCors": false,
        "allowOrigin": "",
        "allowMethods": "",
        "allowHeaders": ""
    }
}