Services are failing to resolve private network
rafaelsoveral
FREEOP

6 months 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

Solved$10 Bounty

Pinned Solution

rafaelsoveral
FREEOP

6 months ago

we solved it by advertising it as
BROKER=kafka:9092

4 Replies

Railway
BOT

6 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


6 months 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 6 months ago


thabanghutamo
FREE

6 months ago

Check your variable reference
In Railway, variables should be injected like:

${kafka.RAILWAY_PRIVATE_DOMAIN}

or just

$RAILWAY_PRIVATE_DOMAIN

thabanghutamo
FREE

6 months ago

.env style

BROKER=${RAILWAY_PRIVATE_DOMAIN}:9092

thabanghutamo

.env styleBROKER=${RAILWAY_PRIVATE_DOMAIN}:9092

rafaelsoveral
FREEOP

6 months ago

we solved it by advertising it as
BROKER=kafka:9092


Status changed to Solved noahd 6 months ago


Loading...