a year ago
[Nest] 13 - 09/22/2025, 12:54:15 PM ERROR [ClientKafka] ERROR [Connection] Connection error: {"timestamp":"2025-09-22T12:54:15.517Z","logger":"kafkajs","broker":":9092","clientId":"personas-client","stack":"AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1122:18)\n at afterConnectMultiple (node:net:1689:7)"}
We're using the variable: ${{kafka.RAILWAY_PRIVATE_DOMAIN}}:9092
Pinned Solution
a year ago
we solved it by advertising it as
BROKER=kafka:9092
4 Replies
a year ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 n8n can't connect to postgres
- 🧵 ECONNREFUSED Error when accessing Astro server api endpoint
- 🧵 redis connection error in judge0 template
- 🧵 backend service unable to connect to PostgreSQL
If you find the answer from one of these, please let us know by solving the thread!
a year ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 11 months ago
a year ago
Check your variable reference
In Railway, variables should be injected like:
${kafka.RAILWAY_PRIVATE_DOMAIN}
or just
$RAILWAY_PRIVATE_DOMAINa year ago
.env style
BROKER=${RAILWAY_PRIVATE_DOMAIN}:9092thabanghutamo
`.env` style ``` BROKER=${RAILWAY_PRIVATE_DOMAIN}:9092 ```
a year ago
we solved it by advertising it as
BROKER=kafka:9092
Status changed to Solved noahd • 11 months ago