Laravel-echo-server Error: Invalid URI "localhost/broadcasting/auth"

  broadcast, echo, events, laravel, uri

I’m using Laradock as a development environment and using the laravel-echo-server included in it.

For public channels it works normally, however when I try to use private channels I get the following error on laravel-echo-server.

laravel-echo-server_1  | [1:19:22 AM] - Sending auth request to: localhost/broadcasting/auth
laravel-echo-server_1  |
laravel-echo-server_1  | [1:19:22 AM] - Error authenticating IHZ3HwHH9iLqb2uKAAAW for private-athletes.1
laravel-echo-server_1  | Error: Invalid URI "localhost/broadcasting/auth"
laravel-echo-server_1  |     at Request.init (/usr/src/app/node_modules/request/request.js:273:31)
laravel-echo-server_1  |     at new Request (/usr/src/app/node_modules/request/request.js:127:8)
laravel-echo-server_1  |     at request (/usr/src/app/node_modules/request/index.js:53:10)
laravel-echo-server_1  |     at Function.post (/usr/src/app/node_modules/request/index.js:61:12)
laravel-echo-server_1  |     at /usr/src/app/node_modules/laravel-echo-server/dist/channels/private-channel.js:57:27
laravel-echo-server_1  |     at new Promise (<anonymous>)
laravel-echo-server_1  |     at PrivateChannel.serverRequest (/usr/src/app/node_modules/laravel-echo-server/dist/channels/private-channel.js:54:16)
laravel-echo-server_1  |     at PrivateChannel.authenticate (/usr/src/app/node_modules/laravel-echo-server/dist/channels/private-channel.js:21:21)
laravel-echo-server_1  |     at Channel.joinPrivate (/usr/src/app/node_modules/laravel-echo-server/dist/channels/channel.js:68:22)
laravel-echo-server_1  |     at Channel.join (/usr/src/app/node_modules/laravel-echo-server/dist/channels/channel.js:21:22)
laravel-echo-server_1  | Error sending authentication request.

Any idea??

I don’t know what else to try.

Source: Laravel

Leave a Reply