tiktok-voice icon indicating copy to clipboard operation
tiktok-voice copied to clipboard

Session ID is invalid

Open Devryc opened this issue 1 year ago • 13 comments

Hi,

I just tested with 2 diferents account and still get

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

Devryc avatar Oct 17 '23 10:10 Devryc

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

abirabedinkhan avatar Oct 17 '23 11:10 abirabedinkhan

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

Yes, I did with this extension

Devryc avatar Oct 17 '23 12:10 Devryc

I also got the same error

Harinderpreet avatar Nov 20 '23 07:11 Harinderpreet

I'm also getting an error

J-1-J avatar Dec 12 '23 03:12 J-1-J

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.

Devryc avatar Dec 13 '23 06:12 Devryc

he

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

julian118 avatar Dec 13 '23 07:12 julian118

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

michy0303lol avatar Dec 14 '23 19:12 michy0303lol

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

lesageethan avatar Dec 23 '23 18:12 lesageethan

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)

Servalipp avatar Feb 04 '24 23:02 Servalipp

I'm also getting the same error. Fixed by adding new v6 endpoint. Also created a PR. Found the endpoint from another project. ](https://github.com/oscie57/tiktok-voice/pull/50)

PasinduDineth avatar Feb 15 '24 22:02 PasinduDineth