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

Fix 401 unauthorized error #85

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nanishin
Copy link

Fix 401 unauthorized error by missed write permission

$ python3 delete_tweet.py
Traceback (most recent call last):
File "delete_tweet.py", line 67, in
raise Exception(
Exception: Request returned an error: 401 {
"title": "Unauthorized",
"type": "about:blank",
"status": 401,
"detail": "Unauthorized"
}

Fix 401 unauthorized error by missed write permission
----
$ python3 delete_tweet.py
Traceback (most recent call last):
  File "delete_tweet.py", line 67, in <module>
    raise Exception(
Exception: Request returned an error: 401 {
  "title": "Unauthorized",
  "type": "about:blank",
  "status": 401,
  "detail": "Unauthorized"
}
@github-actions
Copy link

github-actions bot commented Mar 19, 2022

CLA Assistant Lite bot All Contributors have signed the CLA. If the commit check is not passing, a maintainer must go the Checks tab of this PR and rerun the GitHub Action.

@nanishin
Copy link
Author

Hello there,

FYI, It's my second day to use twitter python sample codes.
When I checked delete_tweet.py operation, it gave me "401 Unauthorized Error" continuously.
I found the difference when compared with create_tweet.py. It comes from missed write permission.
So I added parameters like create_tweet.py and it worked like a charm. :D
Please check the commit and apply it if there's no other issue.

Regards,

@nanishin
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

@nanishin
Copy link
Author

recheck

@jiantaolmc
Copy link

raise Exception(
Exception: Request returned an error: 401 {
"title": "Unauthorized",
"type": "about:blank",
"status": 401,
"detail": "Unauthorized"
}

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

Successfully merging this pull request may close these issues.

2 participants