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

Tiktok downloads are not stable (likely invalid token problem) #26639

Closed
5 tasks done
someziggyman opened this issue Sep 20, 2020 · 1 comment
Closed
5 tasks done

Tiktok downloads are not stable (likely invalid token problem) #26639

someziggyman opened this issue Sep 20, 2020 · 1 comment

Comments

@someziggyman
Copy link

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.09.20
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl -v https://www.tiktok.com/@justin_agustin/video/6868009735342312709
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.tiktok.com/@justin_agustin/video/6868009735342312709']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.09.20
[debug] Python version 2.7.16 (CPython) - Darwin-18.7.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[generic] 6868009735342312709: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 6868009735342312709: Downloading webpage
[generic] 6868009735342312709: Extracting information
ERROR: Unsupported URL: https://www.tiktok.com/@justin_agustin/video/6868009735342312709
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2387, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2562, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2551, in _XML
    parser.feed(text)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1659, in feed
    self._raiseerror(v)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1523, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 6, column 7323
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 532, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 3382, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://www.tiktok.com/@justin_agustin/video/6868009735342312709

Description

Experiencing a very strange problem - sometimes Tiktok video will download just fine, the next minute youtube-dl may return an "Unsupported URL" error for the same video and next one I try.. Using the latest version, no VPNs, no firewalls, network monitors managing connections, stable and fast internet connection. Nothing seems to be able to cause the problem. Maybe, I'm missing some parameter. Please give this URL a try.
https://www.tiktok.com/@justin_agustin/video/6868009735342312709

Try like, maybe 3-5 times and hopefully you will be able to reproduce the issue.

@someziggyman someziggyman changed the title Tiktok downloads are not stable Tiktok downloads are not stable (likely invalid token problem) Sep 20, 2020
@makew0rld
Copy link

Could this be caused by #26411?

@dstftw dstftw closed this as completed in fb626c0 Nov 29, 2020
ThirumalaiK pushed a commit to ThirumalaiK/youtube-dl that referenced this issue Jan 28, 2021
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

2 participants