Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report #24391

Closed
Industrial opened this issue Apr 23, 2021 · 2 comments · Fixed by #24394
Closed

Bug Report #24391

Industrial opened this issue Apr 23, 2021 · 2 comments · Fixed by #24394
Assignees

Comments

@Industrial
Copy link
Contributor

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',
      },
    ]
  },
@Industrial Industrial added the bug Issue was opened via the bug report template. label Apr 23, 2021
@ijjk ijjk added kind: bug and removed bug Issue was opened via the bug report template. labels Apr 23, 2021
@ijjk ijjk self-assigned this Apr 23, 2021
@ijjk ijjk added point: 2 and removed point: 1 labels Apr 23, 2021
@Industrial
Copy link
Contributor Author

Thanks!

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants