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

Unable to download API page & Failed to extract any player response #9779

Closed
10 of 11 tasks
graycastle1413 opened this issue Apr 24, 2024 · 5 comments
Closed
10 of 11 tasks
Labels
question Question

Comments

@graycastle1413
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

Canada

Provide a description that is worded well enough to be understood

[youtube] G2ut4oRJ5SI: Downloading webpage
WARNING: [youtube] Unable to download webpage: <urllib3.connection.HTTPSConnection object at 0x10692b170>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known)
[youtube] G2ut4oRJ5SI: Downloading ios player API JSON
WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x106950380>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known). Retrying (1/3)...
[youtube] G2ut4oRJ5SI: Downloading ios player API JSON
WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x106929880>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known). Retrying (2/3)...
[youtube] G2ut4oRJ5SI: Downloading ios player API JSON
WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x106951490>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known). Retrying (3/3)...
[youtube] G2ut4oRJ5SI: Downloading ios player API JSON
WARNING: [youtube] Unable to download API page: <urllib3.connection.HTTPSConnection object at 0x10692b530>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known) (caused by TransportError("<urllib3.connection.HTTPSConnection object at 0x10692b530>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known)"))
[youtube] G2ut4oRJ5SI: Downloading android player API JSON
WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x106950aa0>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known). Retrying (1/3)...
[youtube] G2ut4oRJ5SI: Downloading android player API JSON
WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x10692bad0>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known). Retrying (2/3)...
[youtube] G2ut4oRJ5SI: Downloading android player API JSON
WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x106951940>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known). Retrying (3/3)...
[youtube] G2ut4oRJ5SI: Downloading android player API JSON
WARNING: [youtube] Unable to download API page: <urllib3.connection.HTTPSConnection object at 0x106953890>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known) (caused by TransportError("<urllib3.connection.HTTPSConnection object at 0x106953890>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known)"))
[youtube] G2ut4oRJ5SI: Downloading iframe API JS
WARNING: [youtube] Unable to download webpage: <urllib3.connection.HTTPSConnection object at 0x10692af30>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known)
[youtube] G2ut4oRJ5SI: Downloading web player API JSON
WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x106952ed0>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known). Retrying (1/3)...
[youtube] G2ut4oRJ5SI: Downloading web player API JSON
WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x10692a390>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known). Retrying (2/3)...
[youtube] G2ut4oRJ5SI: Downloading web player API JSON
WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x1069513a0>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known). Retrying (3/3)...
[youtube] G2ut4oRJ5SI: Downloading web player API JSON
WARNING: [youtube] Unable to download API page: <urllib3.connection.HTTPSConnection object at 0x106950a40>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known) (caused by TransportError("<urllib3.connection.HTTPSConnection object at 0x106950a40>: Failed to resolve 'www.youtube.com' ([Errno 8] nodename nor servname provided, or not known)"))
ERROR: [youtube] G2ut4oRJ5SI: Failed to extract any player response; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

I am confident the latest version of yt-dlp was downloaded using 'brew upgrade yt-dlp' just before the pull.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', 'yt-dlp', '-f', 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp [ff0779267] (pip)
[debug] Python 3.12.3 (CPython arm64 64bit) - macOS-13.5.2-arm64-arm-64bit (OpenSSL 3.2.1 30 Jan 2024)
[debug] exe versions: ffmpeg 6.1.1 (setts), ffprobe 6.1.1
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, mutagen-1.47.0, requests-2.31.0, sqlite3-3.45.2, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1810 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
ERROR: Unable to obtain version info (<urllib3.connection.HTTPSConnection object at 0x102793e90>: Failed to resolve 'api.github.com' ([Errno 8] nodename nor servname provided, or not known)); Please try again later or visit  https://github.com/yt-dlp/yt-dlp/releases/latest
[CommonMistakes] Extracting URL: yt-dlp
ERROR: [CommonMistakes] You've asked yt-dlp to download the URL "yt-dlp". That doesn't make any sense. Simply remove the parameter in your command or configuration.
  File "/opt/homebrew/Cellar/yt-dlp/2024.4.9_1/libexec/lib/python3.12/site-packages/yt_dlp/extractor/common.py", line 734, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/yt-dlp/2024.4.9_1/libexec/lib/python3.12/site-packages/yt_dlp/extractor/commonmistakes.py", line 25, in _real_extract
    raise ExtractorError(msg, expected=True)
@graycastle1413 graycastle1413 added site-bug Issue with a specific website triage Untriaged issue labels Apr 24, 2024
@SorenEricMent
Copy link

"You've asked yt-dlp to download the URL "yt-dlp""

@pukkandan pukkandan added question Question and removed site-bug Issue with a specific website triage Untriaged issue labels Apr 24, 2024
@graycastle1413
Copy link
Author

"You've asked yt-dlp to download the URL "yt-dlp""

I have included the url right after the prompt 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'. I've always used the same prompt to dl playlists or the single video (upload and live) and didn't have any issues. So I'm not exactly sure why there's been errors lately, would the latest MacOS have any affect on it?

@CiaranZagami
Copy link

Same issue here on windows OS.
Last night at 10pm the command string: yt-dlp --merge-output-format mp4 -f "bestvideo+bestaudio[ext=m4a]/best" would let me download whatever I wanted.
This afternoon, same issue as this thread. It says I am not posting a URL.

@bashonly
Copy link
Member

@graycastle1413 it looks like a DNS issue. Maybe try passing -4 or -6 to force ipv4 or ipv6 respectively

@CiaranZagami you need to add the URL you want to download to the end of your command

@bashonly
Copy link
Member

bashonly commented May 8, 2024

closing due to inactivity

@bashonly bashonly closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question
Projects
None yet
Development

No branches or pull requests

5 participants