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

error when trying the sample code provided in the readme file (app not attached to project) #306

Closed
devhindo opened this issue Aug 25, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@devhindo
Copy link

devhindo commented Aug 25, 2023

I get this error when trying the sample code in the readme file

The Twitter API returned a Response with a status other than 2XX series. httpStatus="403 Forbidden" httpStatusCode=403 title="Client Forbidden" detail="When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal."

even though the app is attached to a project.

@michimani
Copy link
Owner

I too have confirmed that the same error occurs.

The cause of this is probably due to the Twitter API v2 plan.

With the Free plan, only the following three APIs are available.

  • POST /2/tweets.
  • DELETE /2/tweets/:id.
  • GET /2/users/me

https://developer.twitter.com/en/portal/products/free

That is, GET /2/users/by/username/:username used in the example in the README is no longer available.

If you want to use this API, you need to be on a Basic plan or higher.

https://developer.twitter.com/en/portal/products/basic

I am very saddened by the recent deterioration of the Twitter API.

@devhindo
Copy link
Author

Thanks that made it clear. please update the sample code to include only free plan APIs for a more friendly starter guide. @michimani

@michimani
Copy link
Owner

I understand. I'll fix it.
Thanks for the advice.

@michimani
Copy link
Owner

I have added a note in the README that there are restrictions based on plan. (#307)

@Tonio101
Copy link

Damn.. wasted a whole day debugging this crap to find out its due to the API plan... Thanks Elon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants