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

Session ID is invalid #40

Open
Devryc opened this issue Oct 17, 2023 · 13 comments
Open

Session ID is invalid #40

Devryc opened this issue Oct 17, 2023 · 13 comments

Comments

@Devryc
Copy link

Devryc commented Oct 17, 2023

Hi,

I just tested with 2 diferents account and still get

{'status': 'Session ID is invalid', 'status_code': 5}

@abirabedinkhan
Copy link
Contributor

Did you follow along? Getting a Session ID: https://github.com/oscie57/tiktok-voice/wiki/Obtaining-SessionID

@Devryc
Copy link
Author

Devryc commented Oct 17, 2023

Did you follow along? Getting a Session ID: https://github.com/oscie57/tiktok-voice/wiki/Obtaining-SessionID

Yes, I did with this extension

@Harinderpreet
Copy link

I also got the same error

@J-1-J
Copy link

J-1-J commented Dec 12, 2023

I'm also getting an error

@Devryc
Copy link
Author

Devryc commented Dec 13, 2023

try replacing the api with "https://api16-normal-c-useast2a.tiktokv.com/media/api/text/speech/invoke/"

It works changing url for that. Thank you so much.

@juliankroes
Copy link

he

I tried the same thing but it does not work for me, any ideas?

@michy0303lol
Copy link

he

I tried the same thing but it does not work for me, any ideas?

I tried it and worked after I did 2 things: First, you need not change the full link but only the part that is different; secondly, you must use your own sessionid from tiktok. You can't use the one in the wiki. You can find your by right click -> inspect -> in the application tab, under the storage section, click on the cookies drop down menu, then click inside and it should be there

@lesageethan
Copy link
Contributor

Hi all. I have changed the URL to the one listed in this issue and made a pull rq

@Servalipp
Copy link

API URL broke for me. I updated the API to be https://api16-normal-useast5.us.tiktokv.com and this works fine.

#in main.py
#https://github.com/oscie57/tiktok-voice/issues/39
    """
    API_DOMAINS = [
    "https://api16-normal-c-useast1a.tiktokv.com",
    "https://api16-normal-c-useast1a.tiktokv.com",
    "https://api16-core-c-useast1a.tiktokv.com",
    "https://api16-normal-useast5.us.tiktokv.com",
    "https://api16-core.tiktokv.com",
    "https://api16-core-useast5.us.tiktokv.com",
    "https://api19-core-c-useast1a.tiktokv.com",
    "https://api-core.tiktokv.com",
    "https://api-normal.tiktokv.com",
    "https://api19-normal-c-useast1a.tiktokv.com",
    "https://api16-core-c-alisg.tiktokv.com",
    "https://api16-normal-c-alisg.tiktokv.com",
    "https://api22-core-c-alisg.tiktokv.com",
    "https://api16-normal-c-useast2a.tiktokv.com",
    ]
    """
    url = f"https://api16-normal-useast5.us.tiktokv.com/media/api/text/speech/invoke/?text_speaker={text_speaker}&req_text={req_text}&speaker_map_type=0&aid=1233"
    r = requests.post(url, headers = headers)

@PasinduDineth
Copy link
Contributor

PasinduDineth commented Feb 15, 2024

I'm also getting the same error. Fixed by adding new v6 endpoint. Also created a PR. Found the endpoint from another project. ](#50)

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

10 participants