Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
YouTube fails with urlopen error [Errno 111] Connection refused #18938
Comments
|
Network issue on your side. |
|
You are absolutely right. This was caused by a hosts file based firewall. Fixed when I removed the rule. A more descriptive error would be useful, but it's definitely not a youtube-dl problem. Thanks for looking into it. |
|
@arschficken What google server did you have blocked? I have half a dozen and I'd rather not test them all |
|
@nate2014jatc Just www.youtube.com. Good luck! |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.01.17. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
Downloading from YouTube fails with Errno 111: Connection refused, even with the latest version of youtube-dl. Used to work fine on this machine with the same OS (Ubuntu 18.04), same internet connection (home ADSL, no proxy). Downloading from e.g. Vimeo works fine.
Some parameters tried that did not resolve the issue: user-agent, referer, prefer-insecure, force-ipv4.