wowa icon indicating copy to clipboard operation
wowa copied to clipboard

Exception message when a timeout occurs during update

Open silpheel opened this issue 5 years ago • 2 comments

When updating addons today there was a long wait on "Updating database" and eventually the exception message below appeared, it was truncated due to me scrolling to see it as the update started.

The update did work with the rest of the sources, since a few addons were updated. All I think should be fixed here is displaying a one liner error message rather than the exception.

Wowa version: 1.3.13

>wowa update

Updating database...tukui summary failed GotError [RequestError]: connect ETIMEDOUT 54.39.107.238:443
    at ClientRequest.<anonymous> (C:\ProgramData\nvm\v12.18.3\node_modules\wowa\node_modules\got\source\request-as-event-emitter.js:178:14)
    at Object.onceWrapper (events.js:422:26)
    at ClientRequest.emit (events.js:327:22)
    at ClientRequest.origin.emit (C:\ProgramData\nvm\v12.18.3\node_modules\wowa\node_modules\@szmarczak\http-timer\source\index.js:37:11)
    at TLSSocket.socketErrorListener (_http_client.js:426:9)
    at TLSSocket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  code: 'ETIMEDOUT',
  host: 'www.tukui.org',
  hostname: 'www.tukui.org',
  method: 'GET',
  path: '/api.php?addons',
  socketPath: undefined,
  protocol: 'https:',
  url: 'https://www.tukui.org/api.php?addons',
  gotOptions: {
    path: '/api.php?addons',
    protocol: 'https:',
    slashes: true,
    auth: null,
    host: 'www.tukui.org',
    port: null,
    hostname: 'www.tukui.org',
    hash: null,
    search: '?addons',
    pathname: '/api.php',
    href: 'https://www.tukui.org/api.php?addons',
    retry: {
      retries: [Function],
      methods: [Set],
      statusCodes: [Set],
      errorCodes: [Set]
    },
    headers: {
      'user-agent': 'got/9.6.0 (https://github.com/sindresorhus/got)',
      'accept-encoding': 'gzip, deflate'
    },
    hooks: {
      beforeRequest: [],
      beforeRedirect: [],
      beforeRetry: [],
      afterResponse: [],
      beforeError: [],
      init: []
    },
    decompress: true,
    throwHttpErrors: true,
    followRedirect: true,
    stream: false,
    form: false,
[TRUNCATED BY ADDON LIST]

Thank you

silpheel avatar Jan 02 '21 13:01 silpheel

You know, this kind of error rarely happens. So I want to see what exact kind of error is happening. Thank you for posting the log here. And this would be optimized in the future versions.

antiwinter avatar Jan 04 '21 02:01 antiwinter

Ok, I understand, thanks for the rationale. If I get other errors I'll report them.

silpheel avatar Jan 04 '21 15:01 silpheel