question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It’s baack!

My bot is almost always returning an ECONNRESET with its streams. This was caught after using stream.on("error") and an extremely long wait time before data is emitted.

Here is a song that has been reported causing the issue. This song also ECONNRESET’s with my test eval. Multiple others songs are like this.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fentcommented, Jun 30, 2018

That did fix the issue! So I can see how maybe some permissions or something is resetting… definitely glad to have this temporary fix in place though.

Good to know! I’ll add a short cache for calling getInfo() and ytdl() on the same video.

Oddly enough, it actually seems to be performing much faster than just calling the yt function itself aswell.

That’s because it needs to get a video’s info first before downloading, and it needs to make a bunch of requests to get the info. But if you already have it, it doesn’t make those requests.

0reactions
FireController1847commented, Jul 26, 2018

I hate to be the bearer of bad news but using downloadFromInfo is now coming up with the error as well. This time not from getInfo, but from the main stream itself.

This video caused the error this time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I debug error ECONNRESET in Node.js?
ECONNRESET occurs when the server side closes the TCP connection and your request to the server is not fulfilled. The server ...
Read more >
What does “Error: read ECONNRESET” mean? - Quora
You might have guessed it already: it's a connection error. "ECONNRESET" means the other side of the TCP conversation abruptly closed its end...
Read more >
Fixing an ECONNRESET error - Postman
The ECONRESET error means that the server unexpectedly closed the connection and the request to the server was not fulfilled. Connection-related ...
Read more >
How do I debug error ECONNRESET in Node.js?
“ECONNRESET” means the other side of the TCP conversation abruptly closed its end of the connection. This is most probably due to one...
Read more >
Return code ECONNRESET for TCP/IP - IBM
Depending upon the platform or platforms your enterprise uses, you receive the following return code when the connection is reset by peer (ECONNRESET):....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found