BadRequestError: request aborted while calling /health endpoint #790
Unanswered
kumarimanjari
asked this question in
Q&A
Replies: 2 comments 9 replies
-
Sounds like a project issue. Without minimal reproduction there is little I can do. |
Beta Was this translation helpful? Give feedback.
5 replies
-
@chimurai - Could you please help me here. I just want health endpoint not to be proxied, below is my code
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
We have an express server where /health endpoint is present (GET method).
There is an external system which tries to call /health endpoint so that it can check the status and process further.
But whenever other system tries to call it, we see below error in our log
BadRequestError: request aborted
[HPM] Error occurred while proxying request <source_url> to <target_url>
[ECONNRESET] (https://nodejs.org/api/errors.html#errors_common_system_errors)
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
We should be able to get 200 status HTTP code, whenever we /health endpoint is called.
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Node Version -> v14.16.0-alpine3.13
Additional context (optional)
No response
Beta Was this translation helpful? Give feedback.
All reactions