-
Notifications
You must be signed in to change notification settings - Fork 4
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
tt_search_api ! HTTP 504 Gateway Timeout #17
Comments
Hi, I am still unable to collect data but today the error message is different and it seems to relate with the error format.
|
That's very strange! I'm traveling today, so can't look into it. I would be curious what the error is. You should be able to get it with
I'm typing on my phone, so check for typos. |
I just tried to reproduce your error and ran into the same issue. It seems to me that the research API's search endpoint is currently experiencing issues. I used the example curl call from the docs directly to see what is happening: curl -X POST \
'https://open.tiktokapis.com/v2/research/video/query/?fields=id,like_count' \
-H 'authorization: bearer clt.example12345Example12345Example' \
-d '{
"query": {
"and": [
{ "operation": "IN", "field_name": "region_code", "field_values": ["US", "CA"] },
{ "operation": "EQ", "field_name": "keyword", "field_values": ["hello world"] }
]
},
"start_date": "20220615",
"end_date": "20220628",
"max_count": 10
}' I replaced
I contacted support and opened a ticket. You might want to do the same. |
Thank you for your answer. I've already opened a ticket and I am waiting for their response. |
It is definitely an issue with the research API. I have been experiencing intermittent problems with this script, which is scheduled to run daily, for the past few weeks. I'll try adding my ticket to the queue, but I never heard back from them in my previous attempts |
I can no longer reproduce this. At least at the moment. Do you have more insights from your scheduled runs @fabiogiglietto? Also, very cool project. Nice to see you get good use out of traktok 😁 ! |
I am still encountering this API issue; however, you may close this thread if you prefer, as it seems that the problem does not originate from Traktok itself. Have you heard back from TikTok about your ticket? |
Unfortunately, after a first email in which I was told they would take over the issue, I received no further response. |
Today I was able to collect a week of data. However, when I changed the timespan I received the following response:
The query is the same that I used before, except for the time span:
|
I'm encountering the same @vot4ntonio error again. This time, the issue stems from pagination. The query executes correctly if it returns only one page, but it fails when multiple pages are returned. A test with my custom code for the API confirmed that the issue is on the API side. |
@JBGruber @vot4ntonio, have either of you received any feedback from someone at TikTok regarding this? It appears they are transitioning to a Virtual Compute Environment, which I currently cannot access, and I'm unsure whom to contact for information |
I'm in the unfortunate position that I changed institutions and can't access my mail anymore. I've opened a ticket about it and another one for this issue, but have never received a reply about either. And now I'm not sure I ever will |
Unfortunately, I did not receive any response to my tickets. |
Hi, I've been trying to gather videos using the tt_search_api all day, but the initial request always ends up timing out.
The tt_user_info seems to be working.
The same code has worked in the past, so I don't think it's an issue with the query construction.
I reinstalled the package and changed the IP address, but the response is still "! HTTP 504 Gateway Timeout".
Response
Version
platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
status
major 4
minor 3.3
year 2024
month 02
day 29
svn rev 86002
language R
version.string R version 4.3.3 (2024-02-29 ucrt)
nickname Angel Food Cake
The text was updated successfully, but these errors were encountered: