6 months 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
at async Object.request (.next/server/chunks/117.js:4:5247)
at async tq (.next/server/chunks/117.js:4:66225)
at async (.next/server/chunks/117.js:4:66652)
at async g.middlewares (.next/server/chunks/117.js:1:2397)
at async w (.next/server/chunks/117.js:4:68)
at async t (.next/server/chunks/117.js:1:1791)
at async w (.next/server/chunks/117.js:4:68)
at async t (.next/server/chunks/117.js:1:2597) {
[cause]: Error: connect ECONNREFUSED fd12:36d7:f8bd:0:9000:10:b774:518e:8055
at <unknown> (Error: connect ECONNREFUSED fd12:36d7:f8bd:0:9000:10:b774:518e:8055) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: 'fd12:36d7:f8bd:0:9000:10:b774:518e',
port: 8055
}
}
3 Replies
Status changed to Awaiting User Response Railway • 6 months ago
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 parmstar • 6 months ago
6 months ago
Just to get the obvious out of the way, this Node app is running within the same project in Railway, correct?
6 months ago
mjablonski
Please see: https://station.railway.com/questions/next-js-build-fails-using-internal-databa-dba4cc9e
6 months 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?
