haxball / haxball-issues

115 stars 43 forks source link

Haxball.js getaddrinfo ENOTFOUND #2091

Open furkanardagul opened 11 months ago

furkanardagul commented 11 months ago

Hi @basro ,

I use haxball.js module and open my room. It works successfully for 1 or 2 days with NodeJS, but then getaddrinfo closes the room by saying ENOTFOUND. I interpreted the mentioned error as involving a situation such as no data coming from haxball.js. What action can we take regarding the issue?

furkanardagul commented 11 months ago

node_modules\haxball.js\node_modules\node-fetch\lib\index.js:1505
                        reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
                               ^
FetchError: request to https://www.haxball.com/rs/api/host failed, reason: getaddrinfo ENOTFOUND www.haxball.com
    at ClientRequest.<anonymous> (node_modules\haxball.js\node_modules\node-fetch\lib\index.js:1505:11)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.socketErrorListener (node:_http_client:502:9)
    at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  type: 'system',
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND'
}

Node.js v18.16.0```