basedcount_bot

RequestException: error with request

Nov 16th, 2024
9
0
6 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.34 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "/home/gmktec/Programming/Bots/basedcount_bot/basedcount_bot.py", line 46, in wrapper
  3.     await func(reddit_instance, mongo_client)
  4.   File "/home/gmktec/Programming/Bots/basedcount_bot/basedcount_bot.py", line 123, in check_mail
  5.     async for message in reddit_instance.inbox.unread(limit=None):  # Message
  6.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/models/listing/generator.py", line 34, in __anext__
  7.     await self._next_batch()
  8.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/models/listing/generator.py", line 89, in _next_batch
  9.     self._listing = await self._reddit.get(self.url, params=self.params)
  10.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/util/deprecate_args.py", line 51, in wrapped
  11.     return await _wrapper(*args, **kwargs)
  12.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/reddit.py", line 785, in get
  13.     return await self._objectify_request(method="GET", params=params, path=path)
  14.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/reddit.py", line 567, in _objectify_request
  15.     await self.request(
  16.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/util/deprecate_args.py", line 51, in wrapped
  17.     return await _wrapper(*args, **kwargs)
  18.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/reddit.py", line 1032, in request
  19.     return await self._core.request(
  20.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 383, in request
  21.     return await self._request_with_retries(
  22.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 286, in _request_with_retries
  23.     response, saved_exception = await self._make_request(
  24.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 192, in _make_request
  25.     response = await self._rate_limiter.call(
  26.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/rate_limit.py", line 50, in call
  27.     kwargs["headers"] = await set_header_callback()
  28.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 337, in _set_header_callback
  29.     await self._authorizer.refresh()
  30.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/auth.py", line 438, in refresh
  31.     await self._request_token(
  32.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/auth.py", line 154, in _request_token
  33.     response = await self._authenticator._post(url=url, **data)
  34.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/auth.py", line 54, in _post
  35.     response = await self._requestor.request(
  36.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/requestor.py", line 80, in request
  37.     raise RequestException(exc, args, kwargs) from None
  38. asyncprawcore.exceptions.RequestException: error with request
  39.  
Add Comment
Please, Sign In to add comment