Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
305 stars 31 forks source link

Error trying to get an API Key #453

Closed MDCYT closed 4 months ago

MDCYT commented 4 months ago

I have been trying to get an api key with 2 accounts I had, and even with a newly created account, but I always get the same error.

image

Version: 2.5.1

Rishikant181 commented 4 months ago

Are those two accounts accessible right now from the Twitter Web App?

MDCYT commented 4 months ago

yes, the 3 accounts I tried I tried with the session logged into twitter.com, I also tried logging out, trying again and then logging back in and trying again.

Rishikant181 commented 4 months ago

Guess we'll have to manually check what error message is being throw by Twitter API. The error as seen above is a generic error message, which is thrown by default whenever an error occurs.

Please try logging the actual error message from Twitter by logging the error on line 235 of the file \node_modules\rettiwt-auth\dist\Auth.js, as follows:

image

MDCYT commented 4 months ago

I was putting the console.log() to test, and I have not changed anything since yesterday, I used the same data from an account I tried yesterday and now it returned the token, I do not understand what changed between yesterday and today but for some reason it worked lol.

image

Rishikant181 commented 4 months ago

Yes, there exists this issue where sometimes it doesn't work. I am yet to find a fix for this and the problem is that the issue is not reproducible. Now that you have the API_KEY though, save it and can use it for a year.