-
Notifications
You must be signed in to change notification settings - Fork 79
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
KeyError: 'data' #55
Comments
I'm getting the same error. Were you able to find a fix? |
Also getting the same issue |
Alright, I got the fix. First change this line: |
Session timeout was fixed since the incorrect base endpoint was used. As mentioned in issue oscie57#55
I changed the URL to API_BASE_URL = f"https://api16-normal-useast5.us.tiktokv.com/media/api/text/speech/invoke/" with no sucess, any help? |
Whenever I try to use the script with a file, it throws me this message which doesn't entirely seem to line up with any status code in particular. I've tried both using a file with multiple lines and one with just one line. I've also tried the recommended Session ID as well as my own, and making sure the aid value is set correctly.
I also tried to use it with just a text argument, but it outputs this instead:
I'm unfortunately not very code-savvy, so I'm a bit confused on what's going on and how I can rectify it.
The text was updated successfully, but these errors were encountered: