Здравствуйте, я пытаюсь подключится к proxy node js, но у меня выходит следующая ошибка
ERROR Error: tunneling socket could not be established, statusCode=400
at ClientRequest.onConnect (C:\Users\User\Desktop\node\node_modules\tunnel-agent\index.js:166:19)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:315:20)
at Socket.socketOnData (_http_client.js:547:11)
at Socket.emit (events.js:315:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at Socket.Readable.push (internal/streams/readable.js:223:10)
at TCP.onStreamRead (internal/stream_base_commons.js:188:23) {
code: 'ECONNRESET'
}
или
ERROR Error: tunneling socket could not be established, cause=socket hang up
at ClientRequest.onError (C:\Users\User\Desktop\node\node_modules\tunnel-agent\index.js:177:17)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:315:20)
at Socket.socketOnEnd (_http_client.js:493:9)
at Socket.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
code: 'ECONNRESET'
}
var request = require("request");
const url = 'https://whoer.net/ru';
request.get({
url: url,
proxy: 'http://188.114.99.234:80',
mthod: "GET",
strictSSL: false
}, (err, res) => {
if (err) {
console.log('ERROR', err);
} else {
console.log('OK', res);
}
});
Скажите, пожалуйста в чем проблема.