Services are failing to resolve private network
rafaelsoveral
FREEOP

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

Solved$10 Bounty

Pinned Solution

rafaelsoveral
FREEOP

a year ago

we solved it by advertising it as

BROKER=kafka:9092

4 Replies

Railway
BOT

a year 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!


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


thabanghutamo
FREE

a year ago

Check your variable reference

In Railway, variables should be injected like:

${kafka.RAILWAY_PRIVATE_DOMAIN}

or just

$RAILWAY_PRIVATE_DOMAIN

thabanghutamo
FREE

a year ago

.env style

BROKER=${RAILWAY_PRIVATE_DOMAIN}:9092

thabanghutamo

`.env` style ``` BROKER=${RAILWAY_PRIVATE_DOMAIN}:9092 ```

rafaelsoveral
FREEOP

a year ago

we solved it by advertising it as

BROKER=kafka:9092


Status changed to Solved noahd 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...