Repository: yt-dlp
Issue: VK 400: Bad Request
Labels: account-needed,site-bug,triage,can-share-account

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting that a **supported** site is broken
- [X] I've verified that I'm running yt-dlp version **2023.03.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

India

### Provide a description that is worded well enough to be understood

Hey, I'm getting the error message "Failed to download m3u8 information: HTTP Error 400: Bad Request" while trying to download a private video from VK.com

used command: python ./yt-dlp -f --cookies "cookies.txt" "https://vk.com/video-4499945_456250635"

Thanks,

### Provide verbose output that clearly demonstrates the problem

- [X] 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
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[vk] Extracting URL: https://vk.com/video-xxxx
[vk] -xxxx: Downloading JSON metadata
[vk] -xxxx: Downloading m3u8 information
WARNING: [vk] Failed to download m3u8 information: HTTP Error 400: Bad Request
[info] -xxxx: Downloading 1 format(s): url720
ERROR: unable to download video data: HTTP Error 400: Bad Request
[porphyrion ~] python ./yt-dlp -v --cookies "cookies.txt" "https://vk.com/video-xxxx"
[debug] Command-line config: ['-v', '--cookies', 'cookies.txt', 'https://vk.com/video-xxxx']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (zip)
[debug] Python 3.9.7 (CPython x86_64 64bit) - Linux-4.19.123-feral-x86_64-with-glibc2.24 (OpenSSL 1.1.0l  10 Sep 2019, glibc 2.24)
[debug] exe versions: ffmpeg 3.2.16-1, ffprobe 3.2.16-1
[debug] Optional libraries: certifi-2022.09.24, no_Cryptodome-None, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[vk] Extracting URL: https://vk.com/video-xxxx
[vk] -xxxx: Downloading JSON metadata
[vk] -xxxx: Downloading m3u8 information
WARNING: [vk] Failed to download m3u8 information: HTTP Error 400: Bad Request
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] -xxxx: Downloading 1 format(s): url720
[debug] Invoking http downloader on "https://vkvd109.mycdn.me/?expires=1681227053135&srcIp=185.xxx.xxx.xx&pr=40&srcAg=CHROME&ms=185.xxx.xxx.xx&type=3&sig=no7lUBrUqYc&ct=0&urls=45.136.22.155&clientType=13&appId=512000384397&id=4019231394361"
ERROR: unable to download video data: HTTP Error 400: Bad Request
Traceback (most recent call last):
  File "/media/sdah1/xxxx/./yt-dlp/yt_dlp/YoutubeDL.py", line 3247, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/media/sdah1/xxxx/./yt-dlp/yt_dlp/YoutubeDL.py", line 2970, in dl
    return fd.download(name, new_info, subtitle)
  File "/media/sdah1/xxxx/./yt-dlp/yt_dlp/downloader/common.py", line 444, in download
    ret = self.real_download(filename, info_dict)
  File "/media/sdah1/xxxx/./yt-dlp/yt_dlp/downloader/http.py", line 376, in real_download
    establish_connection()
  File "/media/sdah1/xxxx/./yt-dlp/yt_dlp/downloader/http.py", line 129, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/media/sdah1/xxxx/./yt-dlp/yt_dlp/YoutubeDL.py", line 3742, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/media/sdah1/xxxx/python/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/media/sdah1/xxxx/python/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/media/sdah1/xxxx/python/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/media/sdah1/xxxx/python/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/media/sdah1/xxxx/python/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
```