okdargy/fxTikTok

`getVideoInfo` request is failing

NuroDev opened this issue · 2 comments

What's the issue?

I just started using this service the other week & it's been super helpful, but today I noticed that links were failing to render correctly in Discord

❌ Unexpected end of JSON input
An error occurred while trying to fetch the video. Please try again later.

After a quick clone & local test this request seems to be returning OK but is failing to decode the JSON payload.
This is of course likely an upstream issue but I thought I would report it in case you were aware of any possible fixes or work around since I don't know the TikTok API at all.

Hm, seems like TikTok disabled that API route. I'll look into finding another API route with similar speeds.

Hm, seems like TikTok disabled that API route. I'll look into finding another API route with similar speeds.

Results (executed from Cloudflare Worker)

{
	"api19-normal-c-useast2a.tiktokv.com": 1571,
	"api21-normal-c-useast2a.tiktokv.com": 1723,
	"api22-normal-c-useast2a.tiktokv.com": 1622,
	"api16-normal-c-useast2a.tiktokv.com": 1881
}

I'll commit a fix to update the URL, thanks for reporting!