My Discordbot just stopped working with the error “connect ECONNREFUSED”.
I have confirmed that it was working until yesterday.
I get the same ECONNREFUSED error when trying to connect to anything other than Discordbot in the same repository.
I also called “npm search” from the Shell tab and the same thing happened here.
Does anyone know why this happens and what I can do to prevent it?
$ npm search express
npm ERR! code ECONNREFUSED
npm ERR! syscall connect
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/-/v1/search?text=express&size=20&from=0&quality=0.65&popularity=0.98&maintenance=0.5 failed, reason: connect ECONNREFUSED 104.16.16.35:443
npm ERR! at ClientRequest.<anonymous> (/home/runner/Keiso2DiscordBot/.config/npm/node_global/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
npm ERR! at ClientRequest.emit (node:events:513:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:494:9)
npm ERR! at TLSSocket.emit (node:events:525:35)
npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR! FetchError: request to https://registry.npmjs.org/-/v1/search?text=express&size=20&from=0&quality=0.65&popularity=0.98&maintenance=0.5 failed, reason: connect ECONNREFUSED 104.16.16.35:443
npm ERR! at ClientRequest.<anonymous> (/home/runner/Keiso2DiscordBot/.config/npm/node_global/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
npm ERR! at ClientRequest.emit (node:events:513:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:494:9)
npm ERR! at TLSSocket.emit (node:events:525:35)
npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '104.16.16.35',
npm ERR! port: 443,
npm ERR! type: 'system'
npm ERR! }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2023-05-26T02_09_08_610Z-debug-0.log