express-http-proxy icon indicating copy to clipboard operation
express-http-proxy copied to clipboard

Allow for async host functions.

Open monkpow opened this issue 5 years ago • 3 comments

@ConnorWhite huh, now these are broken out, I see we're missing test for these cases. I'll try to pick them up in the next day or so, or if you want to add tests I'll accept the commit then. Thanks!

monkpow avatar Sep 25 '19 14:09 monkpow

Hi, first off thanks for all your help. Is this PR merged into master? Is there no way to get async host resolution for now?

srinivasrk avatar Apr 14 '20 22:04 srinivasrk

TypeError: Cannot read property 'request' of undefined
node_modules\express-http-proxy\app\steps\sendProxyRequest.js:13:51

devalexqt avatar Jul 23 '20 00:07 devalexqt

I met the same problem,TypeError, when I wanna use proxy to change req headers,this is the detail infos: TypeError: Cannot read property 'request' of undefined at /node_modules/[email protected]@express-http-proxy/app/steps/sendProxyRequest.js:13:51 at new Promise () at sendProxyRequest (/node_modules/[email protected]@express-http-proxy/app/steps/sendProxyRequest.js:11:10) at process._tickCallback (internal/process/next_tick.js:68:7)

and check the console-term, it shows: node_modules/send/index.js:1038 return typeof res.headersSent !== 'boolean' ^

TypeError: Cannot read property 'headersSent' of undefined

mitcns avatar Sep 03 '20 09:09 mitcns