-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Fetching tweet's details suddenly failing randomly with 404 (NOT_FOUND
)
#552
Comments
Looks like it's fixed now (or at least much better). I'll confirm in a few hours just to be sure! |
Yep, looks like it was just a temporary outage on Twitter's side, sorry! |
Still I'll be taking a look at it in the morning (I do absolutely nothing on Saturday and Sunday :P) |
It's back again. I think that endpoint used to fetch details of a single tweet is borked. I'm checking what can be done about it. |
What I found is that the endpoint works as intended from Postman, but when the exact same request is done via NodeJS, it throws not found. Trying to find a workaround. Edit 1: cURL works, but Axios fails. Edit 2: Tried a library called node-libcurl to make HTTP request from inside NodeJS using cURL and it works, but axios fails. |
It's responding fine for me right now (with rettiwt-api). 🤔 edit: Keeps happening randomly, though much less often than yesterday. It really seems like it's on Twitter's side. |
Please update to Rettiwt-API v3.0.2 for the fix and let me know if it's fixed. |
Let me know if any other endpoint throws a similar error, cause if it does, we might have to change from axios to cURL for making the requests. |
@Rishikant181 I'm getting (Was this change intended?) (Edit: ah just saw this so that answers my q I guess) |
The change was intended. What I did was instead of using the Regarding the |
@Rishikant181 Actually it seems to work when I'm logged in (the old endpoint didn't require it). I'll try for a longer time and keep you updated. |
The issue seems to be inherent in NodeJS. I tried running the same code in Bun and it works. Even the same HTTP request config works on other languages like Python, C#, Java, etc. On NodeJS, the workaround is to use node-libcurl, since it doesn't use NodeJS' native fetch library, instead, it uses libcurl library from C. |
I can confirm I'm not getting any error anymore using |
Still, I'll be keeping this issue open until I've worked out a permanent solution instead of a workaround. |
I have a bot running that suddenly started throwing
NOT_FOUND
errors when fetching tweets a few hours ago. After investigating for a bit, it seems completely random, although it appears to fail way more often than it succeeds.It might be due to the Twitter API being (somewhat) down (can't find anything online about it), but just in case, here's a way to test it by attempting to fetch the same tweet indefinitely (waiting 5 seconds between attempts).
And here's the error:
Note: this endpoint doesn't require authentication but it fails the same way regardless.
The text was updated successfully, but these errors were encountered: