ECONNREFUSED with BullMQ

Hello, I'm trying to send a test job to my bullmq from this template: https://railway.app/template/odzp-I It installed a queue service and a Redis with a volume. Everything seems simple. Haven't changed anything... I'm trying to add a job to bullMQ but I get this error: connect ECONNREFUSED 35.212.174.161:16665
24 Replies
Percy
Percy7mo ago
Project ID: 38fc8a8d-a112-4873-ab2e-ca4a58f887ac
ENT3I <3
ENT3I <37mo ago
38fc8a8d-a112-4873-ab2e-ca4a58f887ac someone? Any ideas?
Brody
Brody7mo ago
does bullmq communicate with TCP or http?
ENT3I <3
ENT3I <37mo ago
tcp
ENT3I <3
ENT3I <37mo ago
No description
ENT3I <3
ENT3I <37mo ago
default port for bullmq is 6379 which is the one that Railway creates
ENT3I <3
ENT3I <37mo ago
No description
Brody
Brody7mo ago
are you using the tcp domain and port railway provided
ENT3I <3
ENT3I <37mo ago
what you mean? The one in the image, yes of course
Brody
Brody7mo ago
show me how you are using it in code
ENT3I <3
ENT3I <37mo ago
Tried two ways as both should work... 1)
ENT3I <3
ENT3I <37mo ago
No description
ENT3I <3
ENT3I <37mo ago
2)
ENT3I <3
ENT3I <37mo ago
No description
Brody
Brody7mo ago
can you connect to redis from a redis client like dbgate?
ENT3I <3
ENT3I <37mo ago
didn't tried I can
Brody
Brody7mo ago
you can connect?
ENT3I <3
ENT3I <37mo ago
yeah.. it works
ENT3I <3
ENT3I <37mo ago
No description
Brody
Brody7mo ago
I'm trying to add a job to bullMQ but I get this error: connect ECONNREFUSED 35.212.174.161:16665
do you get this error locally or on railway?
ENT3I <3
ENT3I <37mo ago
locally Im trying to execute that script on a nodejs backend
Brody
Brody7mo ago
then this would be an issue with ioredis, maybe its not compatiable with the version of redis that railway runs
ENT3I <3
ENT3I <37mo ago
I see... ☹️ I'll try with different nodejs versions as well I have nothing to lose...