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
constHttpsProxyAgent=require('https-proxy-agent')constfetch=require('node-fetch')consturl='https://jsonplaceholder.typicode.com/todos/1'constproxy='https://36.75.245.191:8080'// const proxy = 'http://36.75.245.191:8080' <= with http workedconstsendReq=async()=>{try{constres=awaitfetch(url,{agent: newHttpsProxyAgent(proxy)})constdata=awaitres.json()console.log(data)}catch(err){console.log(err)}}sendReq()
FetchError: request to https://jsonplaceholder.typicode.com/todos/1 failed, reason: Client network
socket disconnected before secure TLS connection was established
at ClientRequest. (C:\Projects...\node_modules\node-fetch\lib\index.js:1455:11)
at ClientRequest.emit (events.js:311:20)
at onerror (C:\Projects...\node_modules\agent-base\dist\src\index.js:114:21)
at callbackError (C:\Projects...\node_modules\agent-base\dist\src\index.js:133:17)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
message: 'request to https://jsonplaceholder.typicode.com/todos/1 failed, reason: Client network
socket disconnected before secure TLS connection was established',
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET'
}
Same on Python worked
The text was updated successfully, but these errors were encountered: