Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shuvobhai's avatar

laravel echo server error in production



L A R A V E L  E C H O  S E R V E R

version 1.6.2

Starting server...

✔  Running at localhost on port 6001
✔  Listening for http events...
✔  Listening for redis events...

Server ready!

(node:3348905) UnhandledPromiseRejectionWarning: TypeError: Cannot convert undefined or null to object
    at /usr/lib/node_modules/laravel-echo-server/dist/channels/presence-channel.js:78:21
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:3348905) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:3348905) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
0 likes
3 replies
shuvobhai's avatar

its wroking good on local server.but showing error in live server

Please or to participate in this conversation.