Replies: 2 comments
-
You didn't really give enough information, but my first guess would be that in |
Beta Was this translation helpful? Give feedback.
0 replies
-
@borzoum, once onProxyReq event is fired, the proxyReq object has already been created and the socket to the target host is open (though no data has been sent yet). To abort the proxied request, you could do |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
onProxyReq: (proxyReq, req, res) => {
try{
//something
}catch(err){
res.send(500);
}
even after sending back 500 to the caller, the proxy still tries to send the request ti the servcer.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions