Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Exception message when a timeout occurs during update #50

Open
silpheel opened this issue Jan 2, 2021 · 2 comments
Open

Exception message when a timeout occurs during update #50

silpheel opened this issue Jan 2, 2021 · 2 comments

Comments

@silpheel
Copy link

silpheel commented Jan 2, 2021

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

@antiwinter
Copy link
Owner

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.

@silpheel
Copy link
Author

silpheel commented Jan 4, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants