laravel / echo

Laravel Echo library for beautiful Pusher and Ably integration.
https://laravel.com/docs/broadcasting#client-side-installation
MIT License
1.18k stars 182 forks source link

Laravel echo and pusher auth error on ubuntu 22.04 #358

Closed halimsupranata closed 2 years ago

halimsupranata commented 2 years ago

Description:

when I call window.Echo.connector.pusher.config.auth.headers["Authorization"] = "Bearer XXXXX" then it will error TypeError: Cannot read properties of undefined (reading 'headers') This is the result with ubuntu 22.04 when I check, there is no auth in the config result

This is the result with ubuntu 20.04 when I check, there is auth, and it works result success

BUT IT WORKS ON ubuntu 20.04.5 with exact same NODE, NPM, exact same PHP, exact same echo version, exact same code(I clone it) 22 04 20 04

Steps To Reproduce:

Use ubuntu 22.04, call window.Echo.connector.pusher.config.auth.headers["Authorization"] = "Bearer XXXXX" then it will error

It sounds doesn't make sense, because it does nothing with OS, but it really happens

driesvints commented 2 years ago

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!