jeckman / YouTube-Downloader

PHP script for downloading videos from youtube; also parsing youtube feed into RSS enclosures for podcatchers
GNU General Public License v2.0
895 stars 474 forks source link

Fatal error: Uncaught Exception: Failed to connect (was: It doesn't work for me) #413

Closed bschemms closed 4 years ago

bschemms commented 5 years ago

Description

I get this error message whenever I try to upload a video: Fatal error: Uncaught Exception: Failed to connect to r1---sn-uxaxiv0nxx5q-nv4l.googlevideo.com port 443: Connection refused in /srv/disk1/2948198/www/yttomp3yeet.125mb.com/src/Http/CurlClient.php:203 Stack trace: #0 /srv/disk1/2948198/www/yttomp3yeet.125mb.com/src/Http/CurlClient.php(113): YoutubeDownloader\Http\CurlClient->getHttpResponseFromCurl(Resource id #52, Array) #1 /srv/disk1/2948198/www/yttomp3yeet.125mb.com/src/Http/CurlClient.php(76): YoutubeDownloader\Http\CurlClient->sendRequest(Object(YoutubeDownloader\Http\Request)) #2 /srv/disk1/2948198/www/yttomp3yeet.125mb.com/src/Application/ControllerAbstract.php(105): YoutubeDownloader\Http\CurlClient->send(Object(YoutubeDownloader\Http\Request), Array) #3 /srv/disk1/2948198/www/yttomp3yeet.125mb.com/src/Application/ResultController.php(174): YoutubeDownloader\Application\ControllerAbstract->getSize('https://r1---sn...', Object(YoutubeDownloader\Config), Object(YoutubeDownloader\Toolkit)) #4 /srv/disk1/2948198/www/yttomp3yeet.125mb.com/src/Application/App.php(83): Y in /srv/disk1/2948198/www/yttomp3yeet.125mb.com/src/Http/CurlClient.php on line 206

Steps to Reproduce

https://www.youtube.com/watch?v=PaErPyEnDvk

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior: It lets me download it

Actual behavior: The error message above happens

Version

I don't know

Additional Information

I am using Google Chrome

jeckman commented 5 years ago

Thanks for providing detailed info.

The "Failed to connect" and "Connection refused" suggest that the server you are running this on can't connect to youtube's servers.

Possible your hosting provider does not allow the use of curl to connect to other servers?

Can you ssh in to a command line and try to use curl from the command line?

mrhussnain commented 5 years ago

same issue here but i have ssh and command line do you have any solution

jeckman commented 5 years ago

@mrhussnain you have the same error message? The same fatal exception at the same line?

mrhussnain commented 5 years ago

i am heaving this error No format stream map found - was the video id correct?

mrhussnain commented 5 years ago

it is showing Error in video ID: HTTP is not supported.

jeckman commented 5 years ago

so if you are having "error No format stream map found - was the video id correct" then you are not having the same issue. That's covered in #396

If you're having "Error in video ID: HTTP is not supported" than you are using an outdated version as that was fixed some time ago.

Please don't jump onto threads like this as it only makes it harder for people to debug their own issues

jeckman commented 4 years ago

Old issue with no follow up - closing