In my nodejs app I create a BeeQueue instance like:
const eventProcessingQueue = new BeeQueue(`queue_name`, {
redis: { url: appSettings.redisConnectionString },
});
appSettings.redisConnectionString is set - correctly - to the internal Redis URL, but when trying to deploy (after successfully building),
I get Redis connection to redis.railway.internal:6379 failed - getaddrinfo ENOTFOUND redis.railway.internal.
Switching to the public URL, works fine.
Tried appending family=6 (and 0 which is the default) at the connection string.
Also tried creating a redis client and seting the socket family to 6 but then it fails for another reason (trying to connect to localhost).
I also have setup a sleep when starting.
The service I'm connecting from and the redis instance, both are in the same project.
Any ideas?
Thank you!