rasrobo / X-Recorder

MIT License
0 stars 0 forks source link

API Connection Failure: Client Forbidden Error When Accessing X (Twitter) API API response status code: 403 #1

Open rasrobo opened 1 month ago

rasrobo commented 1 month ago

$ python3 x_recorder.py -c /path/to/cookie/file -d -p @example_user -a YOUR_BEARER_TOKEN Failed to connect to the API for profile: @example_user API response status code: 403 API response content: { "client_id": "XXXXXXXX", "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.", "registration_url": "https://developer.twitter.com/en/docs/projects/overview", "title": "Client Forbidden", "required_enrollment": "Appropriate Level of API Access", "reason": "client-not-enrolled", "type": "https://api.twitter.com/2/problems/client-forbidden" } No recordings found for the profile '@example_user' in the past 7 days. No recordings found.

rasrobo commented 1 month ago

Description: When attempting to connect to the X (Twitter) API using the free tier access, the script is encountering a "Client Forbidden" error. This is preventing the retrieval of space recordings for specified profiles.

Steps to Reproduce:

  1. Set up the X-Recorder script with a valid cookie file and Bearer Token.
  2. Run the script with the following command: python3 x_recorder.py -c /path/to/cookie/file -d -p @example_user -a YOUR_BEARER_TOKEN

Expected Behavior: The script should successfully connect to the X API and retrieve space recordings for the specified profile.

Actual Behavior: The script fails to connect to the API and returns a 403 Forbidden error with the following details:

Error Details: { "client_id": "XXXXXXXX", "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.", "registration_url": "https://developer.twitter.com/en/docs/projects/overview", "title": "Client Forbidden", "required_enrollment": "Appropriate Level of API Access", "reason": "client-not-enrolled", "type": "https://api.twitter.com/2/problems/client-forbidden" }

Additional Information:

Possible Causes:

  1. The free tier of the X API may not have access to the required endpoints for retrieving space recordings.
  2. The app might not have the necessary permissions enabled.
  3. There could be recent changes to the X API access levels that affect the free tier.

Requested Assistance:

  1. Confirmation on whether retrieving space recordings is possible with the free tier of the X API.
  2. If it is possible, guidance on how to properly set up the project and app to access these endpoints.
  3. If it's not possible with the free tier, clarification on the minimum required access level to use this functionality.

Any insights or workarounds that could help resolve this issue would be greatly appreciated.

rasrobo commented 1 month ago

at the time it appears i cannot proceed because i am using basic tier and cannot afford $1200 a year for this access. X please change this and comment if this is resolved.