MrPowerScripts / reddit-karma-farming-bot

"Is karma really that important to you? Damn bro, you need a life" - YouTube Comment
https://mrpowerscripts.com
MIT License
296 stars 121 forks source link

Reddit not working for gogole #169

Closed Brandonbr1 closed 2 years ago

Brandonbr1 commented 2 years ago

I have a reddit account that is connected to google and the bot doesn't seem to work if you sign in using google

error message here: Traceback (most recent call last): File "C:\Users\Brandon J Mohammed\Downloads\reddit-karma-farming-bot-master\reddit-karma-farming-bot-master\src\init.py", line 4, in import bot File "C:\Users\Brandon J Mohammed\Downloads\reddit-karma-farming-bot-master\reddit-karma-farming-bot-master\src\bot.py", line 1, in from bots.reddit import RedditBot File "C:\Users\Brandon J Mohammed\Downloads\reddit-karma-farming-bot-master\reddit-karma-farming-bot-master\src\bots\reddit__init__.py", line 1, in from .bot import RedditBot File "C:\Users\Brandon J Mohammed\Downloads\reddit-karma-farming-bot-master\reddit-karma-farming-bot-master\src\bots\reddit\bot.py", line 1, in from apis import reddit_api File "C:\Users\Brandon J Mohammed\Downloads\reddit-karma-farming-bot-master\reddit-karma-farming-bot-master\src\apis__init__.py", line 1, in from config import reddit_config File "C:\Users\Brandon J Mohammed\Downloads\reddit-karma-farming-bot-master\reddit-karma-farming-bot-master\src\config\reddit_config.py", line 23, in config_gen() File "C:\Users\Brandon J Mohammed\Downloads\reddit-karma-farming-bot-master\reddit-karma-farming-bot-master\src\config\reddit\config_gen.py", line 46, in config_gen if authenticated(reddit) is True: File "C:\Users\Brandon J Mohammed\Downloads\reddit-karma-farming-bot-master\reddit-karma-farming-bot-master\src\config\reddit\config_gen.py", line 32, in authenticated reddit.user.me() File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\praw\models\user.py", line 162, in me user_data = self._reddit.get(API_PATH["me"]) File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\praw\reddit.py", line 573, in get return self._objectify_request(method="GET", params=params, path=path) File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\praw\reddit.py", line 674, in _objectify_request self.request( File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\praw\reddit.py", line 856, in request return self._core.request( File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\prawcore\sessions.py", line 330, in request return self._request_with_retries( File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\prawcore\sessions.py", line 228, in _request_with_retries response, saved_exception = self._make_request( File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\prawcore\sessions.py", line 185, in _make_request response = self._rate_limiter.call( File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\prawcore\rate_limit.py", line 33, in call kwargs["headers"] = set_header_callback() File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\prawcore\sessions.py", line 283, in _set_header_callback self._authorizer.refresh() File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\prawcore\auth.py", line 425, in refresh self._request_token( File "C:\Users\Brandon J Mohammed.virtualenvs\reddit-karma-farming-bot-master-XAJlfS4l\lib\site-packages\prawcore\auth.py", line 158, in _request_token raise OAuthException( prawcore.exceptions.OAuthException: invalid_grant error processing request exiting... Press any key to continue . . .

MrPowerScripts commented 2 years ago

Thanks for sharing. Since the reddit bot api requires that you authenticate with the account password I'm guessing it doesn't work because there's no password associated when logging in using a 3rd party service. some services will still let you set a password on the accont even though you're logging in with OAuth, but i'm not sure if reddit is one of them. I would suggest creating an account normally if you want to use the bot. I don't think there's a way to work around this.