- 
  Notifications
 You must be signed in to change notification settings 
- Fork 662
Problem connecting to Pusher with Laravel websockets (cURL error code 6) #1116
-
Have a nice day friends I ran into a problem that I can't solve, thank you for helping me to solve this problem. I am planning to use Laravel websocket to develop the notification section of the website But after sending the event, I get the following error : Error image
Illuminate\Broadcasting\BroadcastException
Pusher error: cURL error 6: Could not resolve host: eu (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://eu/apps/xxx/events?auth_key=xxx&auth_timestamp=xxx&auth_version=1.0&body_md5=xxx&auth_signature=xx.
The contents of the config file broadcasting.php: config/broadcasting.php 
'connections' => [
'pusher' => [
 'driver' => 'pusher',
 'key' => env('PUSHER_APP_KEY'),
 'secret' => env('PUSHER_APP_SECRET'),
 'app_id' => env('PUSHER_APP_ID'),
 'options' => [
 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
 'port' => env('PUSHER_PORT', 443),
 'scheme' => env('PUSHER_SCHEME', 'https'),
 'encrypted' => true,
 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
 ],
], 
],
and .env file : .env 
PUSHER_APP_ID=xxxxxxx
PUSHER_APP_KEY=xxxxxxxxxxxxxx
PUSHER_APP_SECRET=xxxxxxxxxxxxxxx
PUSHER_HOST=eu
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1
nslookup Command 
I would be grateful if someone could help me.
Beta Was this translation helpful? Give feedback.