xtopher's avatar

Laravel Reverb Not working on Herd

I am trying to set up Laravel Reverb on my local environment, but it's it keeps disconnecting. Below is my .env configuration

APP_URL=https://mylocaldomain.com.test

REVERB_APP_ID=local REVERB_APP_KEY=local-key REVERB_APP_SECRET=local-secret REVERB_PORT=443 REVERB_HOST=mylocaldomain.com.test REVERB_SCHEME=https

VITE_REVERB_APP_KEY="${REVERB_APP_KEY}" VITE_REVERB_HOST="${REVERB_HOST}" VITE_REVERB_PORT="${REVERB_PORT}" VITE_REVERB_SCHEME="${REVERB_SCHEME}" QUEUE_CONNECTION=redis

The error below shows in the console WebSocket connection to 'wss://mylocaldomain.com.test:8080/app/local-key?protocol=7&client=js&version=8.4.0&flash=false' failed:

Please, a nudge in the right direction will mean a lot. I have tried the documentation, but nothing seems to help.

I use SSL from Herd to secure the site.

1 like
4 replies
xtopher's avatar

@jlrdw Thanks for the suggestion, but it didn't solve the problem for me.

However, I managed to get the WebSocket connection working correctly, but it doesn't broadcast events. Every time I try to broadcast, I get a Guzzle error in the log:

local.ERROR: cURL error 1: Received HTTP/0.9 when not allowed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:8080/apps/local/events?auth_key=local-key&auth_timestamp=1756517946&auth_version=1.0&body_md5=453c2233cf12e52e940aacc48da0b19d&auth_signature=7eeb768756eee4fbf00127ddb8edebbe4cceecd6d1bea8ba4c9ac9c12cd169ae {"exception":"[object] (GuzzleHttp\Exception\RequestException(code: 0): cURL error 1: Received HTTP/0.9 when not allowed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:8080/apps/local/events?auth_key=local-key&auth_timestamp=1756517946&auth_version=1.0&body_md5=453c2233cf12e52e940aacc48da0b19d&auth_signature=7eeb768756eee4fbf00127ddb8edebbe4cceecd6d1bea8ba4c9ac9c12cd169ae at /Users/chris/Herd/mylocaldomain.com/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:278)

xtopher's avatar

@jlrdw Thanks for responding. The article seems helpful. I will set up a reverse proxy.

I thought the simple setup with Herd would work for me like advertised on the Laravel Documentation.

Meanwhile, I had to test it on the staging server, and it's working well.

Please or to participate in this conversation.