basedcount_bot

RequestException: error with request

Dec 17th, 2024
9
0
1 day
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.53 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 263, in read_comments
  5.     async for comment in pcm_subreddit.stream.comments(skip_existing=True):  # Comment
  6.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncpraw/models/util.py", line 172, in stream_generator
  7.     [result async for result in function(limit=limit, **function_kwargs)]
  8.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncpraw/models/util.py", line 172, in <listcomp>
  9.     [result async for result in function(limit=limit, **function_kwargs)]
  10.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncpraw/models/listing/generator.py", line 37, in __anext__
  11.     await self._next_batch()
  12.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncpraw/models/listing/generator.py", line 90, in _next_batch
  13.     self._listing = await self._reddit.get(self.url, params=self.params)
  14.                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  15.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncpraw/util/deprecate_args.py", line 54, in wrapped
  16.     return await _wrapper(*args, **kwargs)
  17.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  18.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncpraw/reddit.py", line 813, in get
  19.     return await self._objectify_request(method="GET", params=params, path=path)
  20.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  21.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncpraw/reddit.py", line 570, in _objectify_request
  22.     await self.request(
  23.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncpraw/util/deprecate_args.py", line 54, in wrapped
  24.     return await _wrapper(*args, **kwargs)
  25.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  26.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncpraw/reddit.py", line 1061, in request
  27.     return await self._core.request(
  28.            ^^^^^^^^^^^^^^^^^^^^^^^^^
  29.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/sessions.py", line 383, in request
  30.     return await self._request_with_retries(
  31.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  32.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/sessions.py", line 286, in _request_with_retries
  33.     response, saved_exception = await self._make_request(
  34.                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  35.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/sessions.py", line 192, in _make_request
  36.     response = await self._rate_limiter.call(
  37.                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  38.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/rate_limit.py", line 51, in call
  39.     response = await request_function(*args, **kwargs)
  40.                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  41.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/requestor.py", line 80, in request
  42.     raise RequestException(exc, args, kwargs) from None
  43. asyncprawcore.exceptions.RequestException: error with request
  44.  
Add Comment
Please, Sign In to add comment