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

Request failed with status code 573 #170

Closed
akaoppa opened this issue Nov 25, 2022 · 5 comments
Closed

Request failed with status code 573 #170

akaoppa opened this issue Nov 25, 2022 · 5 comments

Comments

@akaoppa
Copy link

akaoppa commented Nov 25, 2022

Hello!

Anyone is getting "Request failed with status code 573" ? This is happening today, we are behind a proxy.

Issue with : user-info.js

@yuananf
Copy link

yuananf commented Nov 27, 2022

I got timeout error with user-info.js. @carcabot Do you have time to check it?

@xulei324
Copy link

same problem, and get video comments is not work too.

@ckosmic
Copy link

ckosmic commented Nov 30, 2022

I've got the same issue, hopefully it's just the signature that's changed

@xulei324
Copy link

xulei324 commented Dec 1, 2022

For now, user-videos is block.
xttparams still worked, but TT_REQ_PERM_URL has expiration and it's very short.

@ckosmic
Copy link

ckosmic commented Dec 1, 2022

Interestingly for both user-info and user-videos, I changed the unsigned URL's query params to match what I see in chrome dev tools, including device_id and user_agent, and I'm able to open the signed URL in chrome and see the expected response, but querying it in node through axios gives a response with status_code: -1 for user-info and random data for user-videos. I also noticed if I turn off cookies in chrome, the response in the browser will also give status_code: -1, but turning them back on will bring back the expected response.

So it looks like the signer is working and generates a valid URL, but there's some difference between the request the browser makes and what axios makes. I even set the cookie header and still didn't get any meaningful response.

EDIT: Spoke too soon with user-videos. Here's my request:

response = await axios(signature2.signed_url, {
                headers: {
                    'cookie': 'msToken=[msToken cookie value from Chrome]',
                    'origin': 'https://www.tiktok.com',
                    'user-agent': navigator2.user_agent,
                    'x-tt-params': signature2['x-tt-params']
                },
                method: 'GET',
            });

Note the required cookie and origin headers that must be set and the fact that we are requesting the signed_url and not a perm url. The request is successful using this. It doesn't seem to work for user-info though.

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

5 participants