546200350 / TikTokUploder

Upload video to Tik Tok by sessionId
MIT License
164 stars 27 forks source link

Video don't get upload #90

Open cslop3r opened 4 months ago

cslop3r commented 4 months ago

Hi, I'm getting this error, could someone help me please?

`Traceback (most recent call last): File "/Users/nathan/Documents/RSL/index.py", line 253, in uploadVideo(session_id, file, title, tags, users, url_prefix, proxy=proxy) File "/Users/nathan/Documents/RSL/uploader.py", line 56, in uploadVideo video_id = uploadToTikTok(video, session) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nathan/Documents/RSL/util.py", line 146, in uploadToTikTok upload_node = r.json()["Result"]["InnerUploadAddress"]["UploadNodes"][0]


KeyError: 'Result'`
MarcoLavoro commented 3 months ago

any update on this?

NinhXNT commented 2 months ago

Make you use the correct session and also check the UA from your cookie. Screenshot 2024-06-29 183625

image

guillaume-gex commented 1 week ago

I have the same error :
upload_node = r.json()["Result"]["InnerUploadAddress"]["UploadNodes"][0]


KeyError: 'Result'

I am trying my best to pass it but I cannot... I have the right session_ID from the cookie etc... as far as I can see... printing the r json:
{'ResponseMetadata': {'RequestId': '20240811210833FA74C5E04793BA2F97BB', 'Action': 'ApplyUploadInner', 'Version': '2020-11-19', 'Service': 'vod', 'Region': 'us-east-1', 'Error': {'CodeN': 100026, 'Code': 'InvalidSecretToken', 'Message': 'Invalid secret token, msg: %s.'}}}
Traceback (most recent call last):

Any idea / help please ? thank you