grqz / yt-dlp-invidious

Invidious extractor for yt-dlp
The Unlicense
0 stars 0 forks source link

http 500/502 #1

Open grqz opened 5 days ago

grqz commented 5 days ago

502:

[Invidious] Extracting URL: https://invidious.nerdvpn.de/watch?v=yJHNo0yQv6I
[Invidious] yJHNo0yQv6I: Downloading JSON metadata
ERROR: [Invidious] yJHNo0yQv6I: Unable to download JSON metadata: HTTP Error 502: Bad Gateway (caused by <HTTPError 502: Bad Gateway>)

500:

[Invidious] Extracting URL: https://invidious.jing.rocks/watch?v=BaW_jenozKc
[Invidious] BaW_jenozKc: Downloading JSON metadata
ERROR: [Invidious] BaW_jenozKc: Unable to download JSON metadata: HTTP Error 500: Internal Server Error (caused by <HTTPError 500: Internal Server Error>)
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/extractor/common.py", line 741, in extract
    ie_result = self._real_extract(url)
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt-dlp-plugins/yt-dlp-invidious_dev/yt_dlp_plugins/extractor/invidious.py", line 147, in _real_extract
    api_response = self._download_json(host_url + '/api/v1/videos/' + video_id, video_id)
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/extractor/common.py", line 1151, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/extractor/common.py", line 1111, in download_handle
    res = self._download_webpage_handle(
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/extractor/common.py", line 961, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data,
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/extractor/common.py", line 910, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/extractor/common.py", line 897, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query, extensions))
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/YoutubeDL.py", line 4165, in urlopen
    return self._request_director.send(req)
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/networking/common.py", line 117, in send
    response = handler.send(request)
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/networking/_helper.py", line 208, in wrapper
    return func(self, *args, **kwargs)
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/networking/common.py", line 340, in send
    return self._send(request)
  File "/home/user/ydlp-plugin_dev/invidious/yt-dlp/yt_dlp/networking/_requests.py", line 365, in _send
    raise HTTPError(res, redirect_loop=max_redirects_exceeded)
yt_dlp.networking.exceptions.HTTPError: HTTP Error 500: Internal Server Error

502's show up randomly while 500 means the instance is blocked and the video can not be played from the browser sometimes curl also gets 502

grqz commented 4 days ago

these are invidious's server-side issues, they can be one of the following: