You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This bug is documented in many places, including TooTallNate/node-proxy-agent#54. In summary, agent-base, which is transitively loaded via proxy-agent and a few other dependencies, patches http.request. But old versions are not compatible with recent (Node 10+) changes to the API. This can cause hard to track down bugs when any code in the same process as spectral calls http.request(url, options, callback).
To Reproduce
Load spectral, causing its version of agent-base to be loaded.
Describe the bug
This bug is documented in many places, including TooTallNate/node-proxy-agent#54. In summary,
agent-base
, which is transitively loaded viaproxy-agent
and a few other dependencies, patcheshttp.request
. But old versions are not compatible with recent (Node 10+) changes to the API. This can cause hard to track down bugs when any code in the same process as spectral callshttp.request(url, options, callback)
.To Reproduce
agent-base
to be loaded.http.request(url, options, callback)
See TooTallNate/node-agent-base#35 for some more background.
Expected behavior
http.request(url, options, callback)
works.Additional context
TooTallNate/node-proxy-agent#55
https://github.com/TooTallNate/node-proxy-agent/releases/tag/4.0.0
The text was updated successfully, but these errors were encountered: