Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 404 get error using YoutubeExplode #132

Closed
cosmane opened this issue Jun 23, 2021 · 1 comment
Closed

Getting 404 get error using YoutubeExplode #132

cosmane opened this issue Jun 23, 2021 · 1 comment

Comments

@cosmane
Copy link

cosmane commented Jun 23, 2021

Running on Android emulator:
(Was working previously- about a week ago. Stopped working with message below without code change.)

var videoId = 'https://www.youtube.com/watch?v=xxxx';
var yt = YoutubeExplode();
yt.videos.get(videoId).then((video) {
...
})

Giving:

E/flutter ( 5767): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: FatalFailureException: Failed to perform an HTTP request to YouTube due to a fatal failure.
E/flutter ( 5767): In most cases, this error indicates that YouTube most likely changed something, which broke the library.
E/flutter ( 5767): If this issue persists, please report it on the project's GitHub page.
E/flutter ( 5767): Request: GET https://youtube.com/get_video_info?video_id=xxxx&el=embedded&eurl=https://youtube.googleapis.com/v/xxxx&hl=en&html5=1
E/flutter ( 5767): Response: (404)

Note: videoid above (an actual valid videoid has been used during execution)...
Note: browing to https://youtube.com/get_video_info manually also gives 404 error...

pubspec.yaml:

dependencies:
flutter:
sdk: flutter
youtube_explode_dart:
...

@Hexer10
Copy link
Owner

Hexer10 commented Jun 24, 2021

Should be fixed in the latest version (v1.9.5 or greater)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants