NicolasConstant / BirdsiteLive

An ethical bridge from Twitter
GNU Affero General Public License v3.0
457 stars 36 forks source link

403 Forbidden - "you’ll need to apply for Elevated access via the Developer Portal" vs. API v2 Essential Access #141

Closed harlanji closed 2 years ago

harlanji commented 2 years ago

I'm starting up an instance and had hoped to use my Essential API access that's given freely to anyone. I configured BSL to use my access key and started it up, typed in a popular twitter account, to find the below error message in the log. My mistake for not checking the API version.

My goal is to be able to quickly get friends and clients started running their own instances; using Essential access would be desirable if possible, and if not we could provide copy for the application.

I haven't done .NET development in a long time so it'd take some time for me to migrate this project myself but it's plausible that I could do it. Posting this here to see if switching to v2 has been considered and perhaps get the copy that should be used in the application to describe what this is doing.

Thanks in advance for any feedback.

fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
      An unhandled exception has occurred while executing the request.
--- Date : 02/24/2022 16:41:29
URL : https://api.twitter.com/1.1/users/show.json?screen_name=nasa
Code : 403
Error documentation description : Forbidden - The request is understood, but it has been refused or access is not allowed. An accompanying error message will explain why. This code is used when requests are being denied due to update limits.
Error message : https://api.twitter.com/1.1/users/show.json?screen_name=nasa web request failed.
{"errors":[{"message":"You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve","code":453}]}
 (0)
NicolasConstant commented 2 years ago

Hi!

Anyone can ask for elevated access, it's really easy to do, please follow the links provided in the documentation and it should work after that.