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

Client error '400 Bad Request' in v2.1.4 #148

Open
cmdr-xpedros opened this issue Jan 8, 2024 · 0 comments
Open

Client error '400 Bad Request' in v2.1.4 #148

cmdr-xpedros opened this issue Jan 8, 2024 · 0 comments

Comments

@cmdr-xpedros
Copy link

cmdr-xpedros commented Jan 8, 2024

Trying to download video with --auth-token and there is an error (sensitive data censored):

twitch-dl download 1234567890 --auth-token 123456789abcdef

Fetching access token...
Fetching playlists...
Traceback (most recent call last):
File "/home/user/.local/bin/twitch-dl", line 8, in
sys.exit(main())
File "/home/user/.local/pipx/venvs/twitch-dl/lib/python3.8/site-packages/twitchdl/console.py", line 321, in main
args.func(args)
File "/home/user/.local/pipx/venvs/twitch-dl/lib/python3.8/site-packages/twitchdl/commands/download.py", line 170, in download
download_one(video_id, args)
File "/home/user/.local/pipx/venvs/twitch-dl/lib/python3.8/site-packages/twitchdl/commands/download.py", line 176, in download_one
return _download_video(video_id, args)
File "/home/user/.local/pipx/venvs/twitch-dl/lib/python3.8/site-packages/twitchdl/commands/download.py", line 292, in _download_video
playlists_m3u8 = twitch.get_playlists(video_id, access_token)
File "/home/user/.local/pipx/venvs/twitch-dl/lib/python3.8/site-packages/twitchdl/twitch.py", line 347, in get_playlists
response.raise_for_status()
File "/home/user/.local/pipx/venvs/twitch-dl/lib/python3.8/site-packages/httpx/_models.py", line 759, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://usher.ttvnw.net/vod/xxxxxxxxxxx?nauth=%7B%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%7D%2C%22device_id%22%3Anull%2C%22expires%22%3A1704808187%2C%22https_required%22%3Atrue%2C%22privileged%22%3Afalse%2C%22user_id%22%3Axxxxxxxxx%2C%22version%22%3A2%2C%22vod_id%22%3Axxxxxxxxxx%7D&nauthsig=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&allow_audio_only=true&allow_source=true&player=twitchweb'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400

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

1 participant