I have a project that I am trying to get connected to a rabbit mq broker that I have set up on fly.io with a node.js API, but I cannot figure out how to do this.
What I have tried:
I tried various ways of re-writing the url for the amqp connection, but none of these worked. Here is my environment variable:
#----Service Dependency Variables----
RABIT_MQ_URL=amqp:
#----Service Dependency Variables----
I also tried this format:
<pre>#----Service Dependency Variables----
RABIT_MQ_URL=amqp:
#----Service Dependency Variables----
however, the error that I got in my node.js app is still the same:
ERR {
success: false,
message: Error: getaddrinfo ENOTFOUND rabbit-mq-fly-dep.fly.dev
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'rabbit-mq-fly-dep.fly.dev'
}
}
I have been looking online at other resources, but I can't find anything that could help me. The docs didn't seem to be much help either unless you want to connect to a local host which is easy:
<pre>#----Service Dependency Variables----
RABIT_MQ_URL=amqp:
#----Service Dependency Variables----
This works every time if I run a rabbit MQ instance locally, of course xD
Any help on how to get this working would be much appreciated. Thanks!