When I run the bot this is what happens. It looks like an auth error, but the credentials are correct.
Traceback (most recent call last):
File "reddit_crypto_trader.py", line 19, in
print(f'logged in as {reddit.user.me()}')
File "/home/******/.local/lib/python3.8/site-packages/praw/models/user.py", line 155, in me
user_data = self._reddit.get(API_PATH["me"])
File "/home/******/.local/lib/python3.8/site-packages/praw/reddit.py", line 566, in get
return self._objectify_request(method="GET", params=params, path=path)
File "/home/******/.local/lib/python3.8/site-packages/praw/reddit.py", line 667, in _objectify_request
self.request(
File "/home/******/.local/lib/python3.8/site-packages/praw/reddit.py", line 849, in request
return self._core.request(
File "/home/******/.local/lib/python3.8/site-packages/prawcore/sessions.py", line 330, in request
return self._request_with_retries(
File "/home/******/.local/lib/python3.8/site-packages/prawcore/sessions.py", line 228, in _request_with_retries
response, saved_exception = self._make_request(
File "/home/******/.local/lib/python3.8/site-packages/prawcore/sessions.py", line 185, in _make_request
response = self._rate_limiter.call(
File "/home/******/.local/lib/python3.8/site-packages/prawcore/rate_limit.py", line 33, in call
kwargs["headers"] = set_header_callback()
File "/home/******/.local/lib/python3.8/site-packages/prawcore/sessions.py", line 283, in _set_header_callback
self._authorizer.refresh()
File "/home/******/.local/lib/python3.8/site-packages/prawcore/auth.py", line 425, in refresh
self._request_token(
File "/home/******/.local/lib/python3.8/site-packages/prawcore/auth.py", line 158, in _request_token
raise OAuthException(
prawcore.exceptions.OAuthException: invalid_grant error processing request