-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Description
What version of Next.js are you using?
10.1.3
What version of Node.js are you using?
12.22.1
What browser are you using?
Firefox, Chrome
What operating system are you using?
Linux
How are you deploying your application?
next start
Describe the Bug
When I use a rewrite and the backend is not available, the request hangs.
The console prints
Error occurred proxying http://127.0.0.1:8888/somepath Error: connect ECONNREFUSED 127.0.0.1:8888
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8888
}
Expected Behavior
503
To Reproduce
A next.config.js with:
return [
{
source: '/proxiedPath/somepath',
destination: '127.0.0.1:8888/somepath',
},
]
},
Metadata
Metadata
Assignees
Labels
No labels