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

moamahfouz's avatar

cURL error 6: Could not resolve host: api-.pusher.com

I'm following this series which tends to use laravel broadcast. Log driver works fine with me but when it comes to PUSHER

it gives me this error. I tried so many times but I can reach nothing.

Complete error meesage: in comments

0 likes
5 replies
moamahfouz's avatar

You may not include links the first day you sign up. :/

Spenkau's avatar

@moamahfouz this solution does'nt working now. Any purposes what the solving can be else, please

Satyandra Shakya's avatar

This usually happens when cluster didn't reach to the url generator. check the setting parameter passed to channels_url_prefix method.

In simple words, pass cluster when you are creating instance of Pusher class.

Famous_David's avatar

Hi guys, i fixed this same problem be upgrading pusher-js to the latest version.

Please or to participate in this conversation.