S
S
sequelsur2021-05-28 17:26:33
Node.js
sequelsur, 2021-05-28 17:26:33

How to properly connect Proxy in Node.js?

I have such a simple code, I am training to connect a proxy.

const rp = require('request-promise-native')

const url = `https://reactnative.dev/movies.json`;
const proxiedRequest = rp.defaults({ proxy: 'https://9ZqnQE:[email protected]:10224' });
async function test(){
    let response = await proxiedRequest.get(url);
    console.log(response)
}
test()


It ends up giving an error:
Error: tunneling socket could not be established, cause=write EPROTO 4562374144:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:ssl/record/ssl3_record.c:332:


I also tried to find a solution here - Error "tunneling socket could not be established", how to do it right ?? , did not help :(

Proxies are checked everywhere, on all checkers.

Please tell me how to connect these proxies correctly. I would be very grateful.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question