jeckman/YouTube-Downloader

CurlClient.php:203 Stack trace: #0 line 308

Opened this issue · 2 comments

Description

Notice: Undefined index: url in C:\xampp\htdocs\new\Nerdz\YouTube-Downloader\src\Provider\Youtube\VideoInfo.php on line 308

Fatal error: Uncaught Exception in C:\xampp\htdocs\new\Nerdz\YouTube-Downloader\src\Http\CurlClient.php:203 Stack trace: #0 C:\xampp\htdocs\new\Nerdz\YouTube-Downloader\src\Http\CurlClient.php(113): YoutubeDownloader\Http\CurlClient->getHttpResponseFromCurl(Resource id #52, Array) #1 C:\xampp\htdocs\new\Nerdz\YouTube-Downloader\src\Http\CurlClient.php(76): YoutubeDownloader\Http\CurlClient->sendRequest(Object(YoutubeDownloader\Http\Request)) #2 C:\xampp\htdocs\new\Nerdz\YouTube-Downloader\src\Application\ControllerAbstract.php(105): YoutubeDownloader\Http\CurlClient->send(Object(YoutubeDownloader\Http\Request), Array) #3 C:\xampp\htdocs\new\Nerdz\YouTube-Downloader\src\Application\ResultController.php(174): YoutubeDownloader\Application\ControllerAbstract->getSize('', Object(YoutubeDownloader\Config), Object(YoutubeDownloader\Toolkit)) #4 C:\xampp\htdocs\new\Nerdz\YouTube-Downloader\src\Application\App.php(83): YoutubeDownloader\Application\ResultController->execute() #5 C:\xampp\htdocs\new\Nerdz\YouTube-Downloader\getvid in C:\xampp\htdocs\new\Nerdz\YouTube-Downloader\src\Http\CurlClient.php on line 206

Steps to Reproduce

Please include the direct URL to the YouTube video.
https://www.youtube.com/watch?v=5hohVI0i1ZE

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

Expected behavior: Error Catcher

Actual behavior: Program Down

Version

Youtube Downloader 0.11-dev is licensed under GPL 2.

Additional Information

XAMPP - localhost
WIndows 10

Capture

I fixed the url error, but i cant fix the curl error.

Should i change the complete site behavior and create a pull request?

Here is the error trace

( ! ) Fatal error: Uncaught Exception in YouTube-Downloader\src\Http\CurlClient.php on line 208

1 | 0.0043 | 360312 | {main}( ) | ...\getvideo.php:0
2 | 0.0268 | 557680 | YoutubeDownloader\Application\App->runWithRoute( ) | ...\getvideo.php:23
3 | 0.0288 | 665768 | YoutubeDownloader\Application\ResultController->execute( ) | ...\App.php:83
4 | 1.6719 | 1219408 | YoutubeDownloader\Application\ResultController->getSize( ) | ...\ResultController.php:174
5 | 1.6721 | 1220832 | YoutubeDownloader\Http\CurlClient->send( ) | ...\ControllerAbstract.php:105
6 | 1.6722 | 1221472 | YoutubeDownloader\Http\CurlClient->sendRequest( ) | ...\CurlClient.php:76
7 | 1.6722 | 1222384 | YoutubeDownloader\Http\CurlClient->getHttpResponseFromCurl( ) | ...\CurlClient.php:113

Someone could help me with this problem