-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[Youtube] HTTP Error 403: Forbidden Retrying fragment 1 #32857
Comments
Missing start of log for future reference
Works for me, but then this is acknowledged to be intermittent.
There is |
Will include it in post instead of paste next time.
Standard administrator's response # 1.
Indeed.
Overall result is the same. Of all formats webm seems to be affected. In this run YT formats 278, 133 failed, in the next one all went fine, and the next one 242 failed. |
You could apply this patch to determine if the problem is the one from yt-dlp/yt-dlp#10397: --- old/youtube_dl/extractor/youtube.py
+++ new/youtube_dl/extractor/youtube.py
@@ -1877,6 +1877,14 @@
player_response = self._extract_yt_initial_variable(
webpage, self._YT_INITIAL_PLAYER_RESPONSE_RE,
video_id, 'initial player response')
+ POTOKEN_EXPERIMENTS = ('51217476', '51217102')
+ experiments = traverse_obj(self._extract_ytcfg(video_id, webpage), (
+ 'WEB_PLAYER_CONTEXT_CONFIGS', Ellipsis, 'serializedExperimentIds',
+ T(lambda x: x.split(',')), Ellipsis))
+ if all(x in experiments for x in POTOKEN_EXPERIMENTS):
+ self.report_warning(
+ 'Webpage contains broken formats (poToken experiment detected).')
+
if not player_response:
player_response = self._call_api(
'player', {'videoId': video_id}, video_id) |
It doesn't seem to work any better. Tried to test yt-dlp with it but they disagree on available formats. yt-dlp-2024.07.07 cannot see all formats. yt-dlp-2024.07.16 does. |
Continued in #32905. |
I have the same error but only for audio format, (video is ok) : And it fixed by user-agent switch. |
Checklist
Verbose log
Main part here:
Whole log is here.
Description
WRITE DESCRIPTION HERE
Every so often I got this error now: `HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 1 of 10)...'.
Another try usually helps.
The text was updated successfully, but these errors were encountered: