1. Create a express server using createProxyMiddleware with configured agent socks-proxy-agent (socks5)
2. Run proxy app
3. Create a POST request
Expected behavior (be clear and concise)
It is expected that the urlencode function will give the result as without using a custom agent.
The debug log body-parser:urlencoded should contain this output:
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
If a custom
agent
is specified in the configuration, for example, in my case,socks-proxy-agent
, then theurlencode
function cannot complete its work.That is, no events for
socket
are called inside it.The debug log
body-parser:urlencoded
has this output:Step-by-step reproduction instructions
Expected behavior (be clear and concise)
It is expected that the
urlencode
function will give the result as without using a custom agent. The debug logbody-parser:urlencoded
should contain this output: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?
Additional context (optional)
No response