Closed MuftukMall closed 2 months ago
Got the same error and frustated by it to the point of changing library but still got the same error no matter what the request libraries are under the hood of the telegram bot library. Turns out it was a node problem. I was using 20+ version, downgraded it to old LTS v18.20.2 and the error vanished!
Read this for more context: https://stackoverflow.com/questions/76179568/socket-connection-timout-error-in-node-js
RequestError: AggregateError at new RequestError (/opt/render/project/src/node_modules/request-promise-core/lib/errors.js:14:15) at plumbing.callback (/opt/render/project/src/node_modules/request-promise-core/lib/plumbing.js:87:29) at Request.RP$callback [as _callback] (/opt/render/project/src/node_modules/request-promise-core/lib/plumbing.js:46:31) at self.callback (/opt/render/project/src/node_modules/@cypress/request/request.js:183:22) at Request.emit (node:events:518:28) at Request.onRequestError (/opt/render/project/src/node_modules/@cypress/request/request.js:869:8) at ClientRequest.emit (node:events:518:28) at TLSSocket.socketErrorListener (node:_http_client:500:9) at TLSSocket.emit (node:events:518:28) at emitErrorNT (node:internal/streams/destroy:169:8) at emitErrorCloseNT (node:internal/streams/destroy:128:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'EFATAL' }