iron-fish / node-app

Electron-based Node App
https://ironfish.network/use/node-app
18 stars 8 forks source link

App panics on restart before network is ready #378

Open mhluongo opened 1 year ago

mhluongo commented 1 year ago

Found this on Ubuntu 20.04 after waking up from a hibernate. As the network was reconnecting, the app shutdown and brought up a crash report dialog.

Seems like a quick fix is a back-off / retry, and longer-term you need an idea of connectivity in the app.

Error: getaddrinfo ENOTFOUND 1.main.bn.ironfish.network
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:internal/dns/promises:42:17) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: '1.main.bn.ironfish.network'
}
(node:602199) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND 1.main.bn.ironfish.network
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:internal/dns/promises:42:17)
(node:602199) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
13:51:09.569 › Version Info: {
  app: 'node-app 1.0.0',
  electron: 'Electron 19.1.9',
  os: 'Linux 5.4.0-149-generic'
}
Error: getaddrinfo ENOTFOUND 1.main.bn.ironfish.network
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:internal/dns/promises:42:17) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: '1.main.bn.ironfish.network'
}