You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After we installed Laravel Reverb, it failed to connect and showed this message:
Connection to redis://tls://master.<endpoint>.cache.amazonaws.com:6379?password=*** failed:
Connection to tcp://tls:6379 failed during DNS lookup. Last error for IPv4:
DNS query for tls (A) returned an error response (Non-Existent Domain / NXDOMAIN).
Previous error for IPv6: DNS query for tls (AAAA) returned an error response (Non-Existent Domain / NXDOMAIN)
The concatenated URL is obviously incorrect, because it tries to provide two protocols at once: redis:// and tls://. Thus it is that tls is now being parsed as the "host". Clearly tls is not a valid domain, so the DNS lookup fails.
The implementation of laravel/framework handles the additional tls:// protocol at the start of REDIS_HOST just fine, so we expected this to work with laravel/reverb as well.
Custom quick-fix
The quick-fix was to use REDIS_URL directly instead:
Reverb uses the same ConfigurationUrlParser as the framework itself, so I think setting scheme as you mention in your "Better custom fix" is probably the right way to go here.
Reverb Version
v1.0.0
Laravel Version
10.48.16
PHP Version
8.2.12
Description
Our Setup
We are using Redis as a database connection in our Laravel app (mainly for caching purposes). Our environment variables looked like this:
After we installed Laravel Reverb, it failed to connect and showed this message:
The concatenated URL is obviously incorrect, because it tries to provide two protocols at once:
redis://
andtls://
. Thus it is thattls
is now being parsed as the "host". Clearlytls
is not a valid domain, so the DNS lookup fails.The implementation of
laravel/framework
handles the additionaltls://
protocol at the start ofREDIS_HOST
just fine, so we expected this to work withlaravel/reverb
as well.Custom quick-fix
The quick-fix was to use
REDIS_URL
directly instead:Better custom fix
We have now added
to both
database.php
andreverb.php
configuration files. Then we removedREDIS_URL
again, and strippedtls://
from the start ofREDIS_HOST
.Long-term fix for
laravel/reverb
Support
tls://
at the start ofREDIS_HOST
, like the framework does.Steps To Reproduce
Set
REDIS_HOST
to a string that starts withtls://
.The text was updated successfully, but these errors were encountered: