Private networking URL

kevin-ox-digitalHOBBY

4 days ago

Trying to get my NextJS app to connect to Directus using the internal VPS link:

DIRECTUS_URL=http://directus-c4e86e54.railway.internal:8055

Have followed all the docs I can find but this doesn't seem to work. Was hoping you guys might be able to let me know if this is fixable!

Error message:
Error reading pages: TypeError: fetch failed

Jun 06 14:03:02

forkthis

at async Object.request (.next/server/chunks/117.js:4:5247)

Jun 06 14:03:02

forkthis

at async tq (.next/server/chunks/117.js:4:66225)

Jun 06 14:03:02

forkthis

at async (.next/server/chunks/117.js:4:66652)

Jun 06 14:03:02

forkthis

at async g.middlewares (.next/server/chunks/117.js:1:2397)

Jun 06 14:03:02

forkthis

at async w (.next/server/chunks/117.js:4:68)

Jun 06 14:03:02

forkthis

at async t (.next/server/chunks/117.js:1:1791)

Jun 06 14:03:02

forkthis

at async w (.next/server/chunks/117.js:4:68)

Jun 06 14:03:02

forkthis

at async t (.next/server/chunks/117.js:1:2597) {

Jun 06 14:03:02

forkthis

[cause]: Error: connect ECONNREFUSED fd12:36d7:f8bd:0:9000:10:b774:518e:8055

Jun 06 14:03:02

forkthis

at <unknown> (Error: connect ECONNREFUSED fd12:36d7:f8bd:0:9000:10:b774:518e:8055) {

Jun 06 14:03:02

forkthis

errno: -111,

Jun 06 14:03:02

forkthis

code: 'ECONNREFUSED',

Jun 06 14:03:02

forkthis

syscall: 'connect',

Jun 06 14:03:02

forkthis

address: 'fd12:36d7:f8bd:0:9000:10:b774:518e',

Jun 06 14:03:02

forkthis

port: 8055

Jun 06 14:03:02

forkthis

}

Jun 06 14:03:02

forkthis

}

$10 Bounty

3 Replies

Status changed to Awaiting User Response railway[bot] 3 days ago


parmstarEMPLOYEE

3 days 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 parmstar 3 days ago


3 days ago

Just to get the obvious out of the way, this Node app is running within the same project in Railway, correct?



mjablonski

Please see: https://station.railway.com/questions/next-js-build-fails-using-internal-databa-dba4cc9e

3 days ago

These are definitely not related. This is clearly a runtime error.

Edit: I can see that the name is being resolved, so it must be in the same project. Can you share the latest logs of the Directus service?


Private networking URL - Railway Help Station