proxy not works with https sites #662
Replies: 6 comments
-
Please provide a reproducible example |
Beta Was this translation helpful? Give feedback.
-
async function test() { const serverUrl = const client = new Client(proxyUrl) const response = await client.request({ console.log( response.body.setEncoding('utf8') client.close() |
Beta Was this translation helpful? Give feedback.
-
Running that script I am getting:
It seems that host is down. |
Beta Was this translation helpful? Give feedback.
-
It seems that proxy goes down. I took some public to not share my own private. Try any other public proxy currently alive. We test that on few servers |
Beta Was this translation helpful? Give feedback.
-
I do not have a public proxy. I would recommend you to send a PR/build an example similar to https://github.com/nodejs/undici/blob/main/test/proxy.js. |
Beta Was this translation helpful? Give feedback.
-
Moving to discussions as this seems like a help request |
Beta Was this translation helpful? Give feedback.
-
400 bad request when using proxy & trying to send https requests. http requests works fine
Beta Was this translation helpful? Give feedback.
All reactions