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
Hi,
I tried upgrading my code using http-mitm-proxy from node 10 to node 16 ( and 17).
I started getting the error :
TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
at new NodeError (node:internal/errors:371:5)
at new ClientRequest (node:_http_client:158:11)
at Object.request (node:https:353:10)
at makeProxyToServerRequest (/Users/davidsaliba/Documents/node-code/Carma_HTTPS_Proxy_LB_Prod/node_modules/http-mitm-proxy/lib/proxy.js:788:38)
at /Users/davidsaliba/Documents/node-code/Carma_HTTPS_Proxy_LB_Prod/node_modules/http-mitm-proxy/lib/proxy.js:781:16
at wrapper (/Users/davidsaliba/Documents/node-code/Carma_HTTPS_Proxy_LB_Prod/node_modules/async/dist/async.js:271:20)
at eachOfArrayLike (/Users/davidsaliba/Documents/node-code/Carma_HTTPS_Proxy_LB_Prod/node_modules/async/dist/async.js:490:13)
at eachOf (/Users/davidsaliba/Documents/node-code/Carma_HTTPS_Proxy_LB_Prod/node_modules/async/dist/async.js:626:16)
at awaitable (/Users/davidsaliba/Documents/node-code/Carma_HTTPS_Proxy_LB_Prod/node_modules/async/dist/async.js:211:32)
at Object.eachLimit (/Users/davidsaliba/Documents/node-code/Carma_HTTPS_Proxy_LB_Prod/node_modules/async/dist/async.js:2686:16) {
code: 'ERR_INVALID_PROTOCOL'
}
After reverting the version back to 12.12 it seems to work.. but have same issue with ode@11. works on versions 10 and lower.
How can this be fixed ?
Thanks David.
The text was updated successfully, but these errors were encountered:
Hi,
I tried upgrading my code using http-mitm-proxy from node 10 to node 16 ( and 17).
I started getting the error :
After reverting the version back to 12.12 it seems to work.. but have same issue with ode@11. works on versions 10 and lower.
How can this be fixed ?
Thanks David.
The text was updated successfully, but these errors were encountered: