I am trying to debug a proxy in Express, using http-proxy-middleware
, but no matter what I do I get absolutely zero response. The endpoint sends the response but it is never returned by the proxy and the onProxyRes
event is never triggered. Also the endpoint can be accessed directly through curl
, Insomnia, fetch
API and request-promise
and is in use as an API for our customers.
Even with a setup as simple as:
app.use('/api', proxy({
target: 'https://my.secret.endpoint',
changeOrigin: true
});
I get absolutely zero response, except for a ECONNRESET
after timeout. Any suggestions?