RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

error in main.py

Open alexgarciiaa opened this issue 4 years ago • 10 comments

Traceback (most recent call last): File "/home/alexgarcia/RedditVideoMakerBot/main.py", line 93, in reddit_object = get_subreddit_threads() File "/home/alexgarcia/RedditVideoMakerBot/reddit/subreddit.py", line 58, in get_subreddit_threads submission = list(threads)[random.randrange(0, 25)] File "/home/alexgarcia/.local/lib/python3.9/site-packages/praw/models/listing/generator.py", line 63, in next self._next_batch() File "/home/alexgarcia/.local/lib/python3.9/site-packages/praw/models/listing/generator.py", line 89, in _next_batch self._listing = self._reddit.get(self.url, params=self.params) File "/home/alexgarcia/.local/lib/python3.9/site-packages/praw/util/deprecate_args.py", line 43, in wrapped return func(**dict(zip(_old_args, args)), **kwargs) File "/home/alexgarcia/.local/lib/python3.9/site-packages/praw/reddit.py", line 634, in get return self._objectify_request(method="GET", params=params, path=path) File "/home/alexgarcia/.local/lib/python3.9/site-packages/praw/reddit.py", line 739, in _objectify_request self.request( File "/home/alexgarcia/.local/lib/python3.9/site-packages/praw/util/deprecate_args.py", line 43, in wrapped return func(**dict(zip(_old_args, args)), **kwargs) File "/home/alexgarcia/.local/lib/python3.9/site-packages/praw/reddit.py", line 941, in request return self._core.request( File "/home/alexgarcia/.local/lib/python3.9/site-packages/prawcore/sessions.py", line 330, in request return self._request_with_retries( File "/home/alexgarcia/.local/lib/python3.9/site-packages/prawcore/sessions.py", line 228, in _request_with_retries response, saved_exception = self._make_request( File "/home/alexgarcia/.local/lib/python3.9/site-packages/prawcore/sessions.py", line 185, in _make_request response = self._rate_limiter.call( File "/home/alexgarcia/.local/lib/python3.9/site-packages/prawcore/rate_limit.py", line 33, in call kwargs["headers"] = set_header_callback() File "/home/alexgarcia/.local/lib/python3.9/site-packages/prawcore/sessions.py", line 283, in _set_header_callback self._authorizer.refresh() File "/home/alexgarcia/.local/lib/python3.9/site-packages/prawcore/auth.py", line 425, in refresh self._request_token( File "/home/alexgarcia/.local/lib/python3.9/site-packages/prawcore/auth.py", line 158, in _request_token raise OAuthException( prawcore.exceptions.OAuthException: invalid_grant error processing request

alexgarciiaa avatar Jun 14 '22 14:06 alexgarciiaa

Hi!

Please refer to THIS

https://immaharry.gitbook.io/reddit-automated-video-bot/final-words/error-1

FreebieII avatar Jun 14 '22 17:06 FreebieII

Hi!

Please refer to THIS

https://immaharry.gitbook.io/reddit-automated-video-bot/final-words/error-1

I have checked it a few times and the same error keeps popping

alexgarciiaa avatar Jun 14 '22 19:06 alexgarciiaa

Is everything in your .env file correct? Please send a screenshot of it here, blurring important credentials!

FreebieII avatar Jun 14 '22 21:06 FreebieII

WhatsApp Image 2022-06-15 at 10 37 24 AM

alexgarciiaa avatar Jun 15 '22 08:06 alexgarciiaa

I do have the same issue. I even tried recreating developer app under /pref/apps on Reddit.

EDIT: I even tried creating new account but still the same problem

UserOneXX avatar Jun 15 '22 08:06 UserOneXX

Ohh, im so stupid lol. When you create developer app under reddit.com/pref/apps you have to choose third option aka SCRIPT. Now it's working.

UserOneXX avatar Jun 15 '22 13:06 UserOneXX

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]

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 08 '22 03:07 github-actions[bot]

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 15 '22 02:07 github-actions[bot]

Issue closed due to being stale. Please reopen if issue persists in latest version.

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