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

Error in video ID: HTTP is not supported. #397

Closed nobicycle closed 5 years ago

nobicycle commented 5 years ago

I thank the author and contributors for Youtube-Downloader

Description

The famous:

Error in video ID: HTTP is not supported.

Has been much discussed but non of (all) the issues raised solved my problem - that I get this error for every attempt to download.

[Description of the issue]

Error in video ID: HTTP is not supported. For every video.

Steps to Reproduce

An example video ID is FjHJ7FmV0M4 (not music nor film)

Version

0.10

PHP 7.3.6 (cli) (built: May 28 2019 16:47:07) ( NTS )

Additional Information

No error in the nginx server log

Debug info:

object(YoutubeDownloader\Provider\Youtube\VideoInfo)#19 (8) { ["options":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> array(2) { ["use_ip"]=> bool(false) ["decipher_signature"]=> bool(false) } ["formats":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> NULL ["adaptive_formats":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> NULL ["data":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> array(8) { ["video_id"]=> NULL ["status"]=> string(4) "fail" ["reason"]=> string(22) "HTTP is not supported." ["thumbnail_url"]=> NULL ["title"]=> NULL ["url_encoded_fmt_stream_map"]=> NULL ["adaptive_fmts"]=> NULL ["length_seconds"]=> NULL } ["allowed_keys":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> array(8) { [0]=> string(8) "video_id" [1]=> string(6) "status" [2]=> string(6) "reason" [3]=> string(13) "thumbnail_url" [4]=> string(5) "title" [5]=> string(26) "url_encoded_fmt_stream_map" [6]=> string(13) "adaptive_fmts" [7]=> string(14) "length_seconds" } ["cache":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> object(YoutubeDownloader\Cache\FileCache)#17 (2) { ["root":"YoutubeDownloader\Cache\FileCache":private]=> string(37) "/srv/http/joomla/youtube/src/../cache" ["config":"YoutubeDownloader\Cache\FileCache":private]=> array(1) { ["writeFlags"]=> int(2) } } ["http_client":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> object(YoutubeDownloader\Http\CurlClient)#22 (1) { ["curlOptions":"YoutubeDownloader\Http\CurlClient":private]=> array(7) { [10002]=> string(88) "http://www.youtube.com/get_video_info?&video_id=FjHJ7FmV0M4&asv=3&el=detailpage&hl=en_US" [10036]=> string(3) "GET" [42]=> bool(true) [19913]=> bool(true) [78]=> int(3) [52]=> bool(true) [84]=> int(2) } } ["logger":protected]=> object(YoutubeDownloader\Logger\HandlerAwareLogger)#23 (1) { ["handlers":"YoutubeDownloader\Logger\HandlerAwareLogger":private]=> array(2) { [0]=> object(YoutubeDownloader\Logger\Handler\NullHandler)#24 (0) { } [1]=> object(YoutubeDownloader\Logger\Handler\StreamHandler)#26 (3) { ["template":"YoutubeDownloader\Logger\Handler\StreamHandler":private]=> string(37) "[%datetime%] %level_name%: %message% " ["stream"]=> resource(4) of type (stream) ["levels"]=> array(8) { [0]=> string(9) "emergency" [1]=> string(5) "alert" [2]=> string(8) "critical" [3]=> string(5) "error" [4]=> string(7) "warning" [5]=> string(6) "notice" [6]=> string(4) "info" [7]=> string(5) "debug" } } } } }

jswails commented 5 years ago

Do you have a ssl certified cert on that and making the web service use it? Google YouTube no longer allows non ssl connections to it

Perhaps thats it?

On Tue, Jul 9, 2019, 11:16 AM nobicycle notifications@github.com wrote:

I thank the author and contributors for Youtube-Downloader Description

The famous:

Error in video ID: HTTP is not supported.

Has been much discussed but non of (all) the issues raised solved my problem - that I get this error for every attempt to download.

[Description of the issue]

Error in video ID: HTTP is not supported. For every video. Steps to Reproduce

An example video ID is FjHJ7FmV0M4 (not music nor film) Version

0.10 PHP 7.3.6 (cli) (built: May 28 2019 16:47:07) ( NTS ) Additional Information

No error in the nginx server log

Debug info:

object(YoutubeDownloader\Provider\Youtube\VideoInfo)#19 (8) { ["options":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> array(2) { ["use_ip"]=> bool(false) ["decipher_signature"]=> bool(false) } ["formats":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> NULL ["adaptive_formats":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> NULL ["data":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> array(8) { ["video_id"]=> NULL ["status"]=> string(4) "fail" ["reason"]=> string(22) "HTTP is not supported." ["thumbnail_url"]=> NULL ["title"]=> NULL ["url_encoded_fmt_stream_map"]=> NULL ["adaptive_fmts"]=> NULL ["length_seconds"]=> NULL } ["allowed_keys":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> array(8) { [0]=> string(8) "video_id" [1]=> string(6) "status" [2]=> string(6) "reason" [3]=> string(13) "thumbnail_url" [4]=> string(5) "title" [5]=> string(26) "url_encoded_fmt_stream_map" [6]=> string(13) "adaptive_fmts" [7]=> string(14) "length_seconds" } ["cache":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> object(YoutubeDownloader\Cache\FileCache)#17 (2) { ["root":"YoutubeDownloader\Cache\FileCache":private]=> string(37) "/srv/http/joomla/youtube/src/../cache" ["config":"YoutubeDownloader\Cache\FileCache":private]=> array(1) { ["writeFlags"]=> int(2) } } ["http_client":"YoutubeDownloader\Provider\Youtube\VideoInfo":private]=> object(YoutubeDownloader\Http\CurlClient)#22 (1) { ["curlOptions":"YoutubeDownloader\Http\CurlClient":private]=> array(7) { [10002]=> string(88) " http://www.youtube.com/get_video_info?&video_id=FjHJ7FmV0M4&asv=3&el=detailpage&hl=en_US" [10036]=> string(3) "GET" [42]=> bool(true) [19913]=> bool(true) [78]=> int(3) [52]=> bool(true) [84]=> int(2) } } ["logger":protected]=> object(YoutubeDownloader\Logger\HandlerAwareLogger)#23 (1) { ["handlers":"YoutubeDownloader\Logger\HandlerAwareLogger":private]=> array(2) { [0]=> object(YoutubeDownloader\Logger\Handler\NullHandler)#24 (0) { } [1]=> object(YoutubeDownloader\Logger\Handler\StreamHandler)#26 (3) { ["template":"YoutubeDownloader\Logger\Handler\StreamHandler":private]=> string(37) "[%datetime%] %level_name%: %message% " ["stream"]=> resource(4) of type (stream) ["levels"]=> array(8) { [0]=> string(9) "emergency" [1]=> string(5) "alert" [2]=> string(8) "critical" [3]=> string(5) "error" [4]=> string(7) "warning" [5]=> string(6) "notice" [6]=> string(4) "info" [7]=> string(5) "debug" } } } } }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jeckman/YouTube-Downloader/issues/397?email_source=notifications&email_token=ACRP6TL6RBMPTRZYCR27OULP6STTHA5CNFSM4H7GTST2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G6EFFZA, or mute the thread https://github.com/notifications/unsubscribe-auth/ACRP6TMLB44FH2FCCENU5D3P6STTHANCNFSM4H7GTSTQ .

nobicycle commented 5 years ago

Thanks JS, I suspected this might be so. I'll close this (and test later).