Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Problem connecting to Pusher with Laravel websockets (cURL error code 6) #1116

Unanswered
YonesSohrabi asked this question in Q&A
Discussion options

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

Ping Command

I would be grateful if someone could help me.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /