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

Authentication Error (403 Forbidden) when Running Twitter Bot #132

Open
PtPrashantTripathi opened this issue Jul 31, 2023 · 8 comments
Open
Labels
bug Something isn't working

Comments

@PtPrashantTripathi
Copy link

Description:

I am facing an authentication issue with the Twitter bot using the code from the repository https://github.com/vedicscriptures/twitter_bot/blob/main/main.py. Previously, it used to work without any problems, but now I am encountering a 403 Forbidden error during authentication.

Steps to Reproduce:

  1. Clone the repository: https://github.com/vedicscriptures/twitter_bot.git
  2. Run the command: python main.py
  3. Observe the authentication error mentioned below:
Run python main.py
  python main.py
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.8.17/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.17/x64/lib
    APIKey: ***
    APISecretKey: ***
    AccessToken: ***
    AccessTokenSecret: ***
    BearerToken: ***
2021-10-14
2023-07-31 18:09:40.196412
Error during authentication :
403 Forbidden
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.

Links to Runs with the Issue:

  1. Successful Run URL: https://github.com/vedicscriptures/twitter_bot/actions/runs/5681881040/job/15398990021
  2. Failing Run URL: https://github.com/vedicscriptures/twitter_bot/actions/runs/5718104707/job/15493234567

Additional Information:
I have confirmed that the code being used is the same as provided in the repository, and it was previously functional. However, after the recent run at the URL mentioned above, the authentication issue started occurring. Any assistance in resolving this problem would be greatly appreciated.

@PtPrashantTripathi PtPrashantTripathi added the bug Something isn't working label Jul 31, 2023
@sshah98
Copy link

sshah98 commented Aug 10, 2023

getting same errors

@MarcusHSmith
Copy link

any updates here?

@PtPrashantTripathi
Copy link
Author

getting same errors

no

@Abdelmohsin
Copy link

i

did you provide DM api ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@MarcusHSmith @PtPrashantTripathi @sshah98 @Abdelmohsin and others