8 months ago
im trying to fetch data trough internal connection from my next app to nginx container
the public connections works ok but internal connection from next to nginx getting refused
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async l (/app/.next/server/chunks/791.js:1:15607)
at async c (/app/.next/server/app/user/store/addproduct/page.js:1:12933) {
cause: Error: connect ECONNREFUSED fd12:d5b3:325::71:9b4a:a356:80
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: 'fd12:d5b3:325::71:9b4a:a356',
port: 80
},
digest: '1502078682'
}
dc995e0b-6c2b-4228-add9-fd64346b4281
the url that i tried already with are :
http://nginx.railway.internal:80
http://nginx.railway.internal
nginx.railway.internal
nginx.railway.internal:80
2 Replies
8 months ago
Resolved
Status changed to Solved brody • 8 months ago
a month ago
have the same issue , can you share ?
my ngnix serve correctly the fe but failed to proxy to an internal be
Status changed to Open railway[bot] • about 1 month ago