Answer the question
In order to leave comments, you need to log in
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()
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:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question