Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Request timed out #1638

Closed
untitledlt opened this issue Jun 9, 2019 · 2 comments
Closed

Error: Request timed out #1638

untitledlt opened this issue Jun 9, 2019 · 2 comments

Comments

@untitledlt
Copy link
Contributor

@untitledlt untitledlt commented Jun 9, 2019

Not sure what happened but 'metadata' event stopped firing and sometimes i'm getting Error: Request timed out. Torrent gets downloaded though.

How can I track down this problem and what exactly it is trying to reach when request timeout happens?

Error: Request timed out
    at ClientRequest.req.on (/Users/******/node_modules/simple-get/index.js:67:8)
    at ClientRequest.emit (events.js:182:13)
    at ClientRequest.EventEmitter.emit (domain.js:441:20)
    at Socket.emitRequestTimeout (_http_client.js:662:40)
    at Object.onceWrapper (events.js:273:13)
    at Socket.emit (events.js:182:13)
    at Socket.EventEmitter.emit (domain.js:441:20)
    at Socket._onTimeout (net.js:453:8)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)

webtorrent version: 0.102.4
node version: v10.14.2
running on OS X

@SilentBot1

This comment has been minimized.

Copy link
Member

@SilentBot1 SilentBot1 commented Jul 21, 2019

Hi @untitledlt

You can retrieve a more detailed set of logging from WebTorrent and it's accompanied modules by setting the environment variable DEBUG equal to the title of the specific module you would like logging from e.g. DEBUG=webtorrent, or an asterisk if you would like to retrieve logs from all modules e.g. DEBUG=*.

With this advanced logging, it should help us determine how and why WebTorrent is crashing when the request is timing out.

Just from a brief look at the stack trace, it appears that one of the &xs= servers within the MagnetURI is possibly timing out causing the following error though the stack trace isn't very helpful.

To further look at the issue, we would need either the code to replicate the issue or the logs generated from setting the environment variable discussed above.

Kind regards
Brad

@no-response

This comment has been minimized.

Copy link

@no-response no-response bot commented Jul 28, 2019

This issue has been automatically closed because there was no response to a request for more information from the issue opener. Please leave a comment or open a new issue if you have additional information related to this issue.

@no-response no-response bot closed this Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.