RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

Error: received 401 HTTP response

Open Taze00 opened this issue 4 years ago • 16 comments

Hey. I always get an error when I run the main.py. I assume that I specify something wrong in the .env file. Can someone help me there?

Error: prawcore.exceptions.ResponseException: received 401 HTTP response

my .env: image

Taze00 avatar Jun 04 '22 12:06 Taze00

Your subreddit needs to just be "AskReddit" not the link

callumio avatar Jun 04 '22 13:06 callumio

Same error :(

Taze00 avatar Jun 04 '22 14:06 Taze00

Ensure your username, password, token and clientid are correct.

Also uncomment theme

callumio avatar Jun 04 '22 14:06 callumio

username and password are definitely correct. I copied the client id from the orange marked one and the secrets from the blue marked one. Can you give me an example when I can enter 1 to 1 at the "Theme" and "Subreddit"?

image

Taze00 avatar Jun 04 '22 15:06 Taze00

Do you have two factor authentication enabled on reddit?

callumio avatar Jun 04 '22 15:06 callumio

No

Taze00 avatar Jun 04 '22 15:06 Taze00

OK - try SUBREDDIT="askreddit" and THEME="light"

callumio avatar Jun 04 '22 15:06 callumio

same error :(((

Taze00 avatar Jun 04 '22 15:06 Taze00

Hey! I had this problem earlier too. My issue was that there was an extra space in my secret or id, don't remember which one, that I didn't put there. I think it was copied over when I copied it, so just make sure that there isn't any extra white space, because that will cause a problem

benjables avatar Jun 04 '22 20:06 benjables

Same error here! still no solution, I tried it with 2 different accounts and 2 different apps

crbaws avatar Jun 05 '22 18:06 crbaws

Solved, I entered the ID manually and it worked !

crbaws avatar Jun 05 '22 18:06 crbaws

.env file error. Make sure every field is correct and has no spaces

gBlaku avatar Jun 07 '22 19:06 gBlaku

Solved, I entered the ID manually and it worked !

what do you mean by enter the id manually?

RealHeha avatar Jun 14 '22 06:06 RealHeha

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

github-actions[bot] avatar Jul 02 '22 00:07 github-actions[bot]

same error

ZelKed avatar Jul 03 '22 14:07 ZelKed

incorrect authentication

JasonLovesDoggo avatar Jul 06 '22 23:07 JasonLovesDoggo