Advertisement
basedcount_bot

RequestException: error with request

Jan 15th, 2025
54
0
1 day
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.41 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 305, in _request_with_retries
  33.     return await self._do_retry(
  34.            ^^^^^^^^^^^^^^^^^^^^^
  35.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/sessions.py", line 170, in _do_retry
  36.     return await self._request_with_retries(
  37.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  38.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/sessions.py", line 305, in _request_with_retries
  39.     return await self._do_retry(
  40.            ^^^^^^^^^^^^^^^^^^^^^
  41.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/sessions.py", line 170, in _do_retry
  42.     return await self._request_with_retries(
  43.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  44.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/sessions.py", line 286, in _request_with_retries
  45.     response, saved_exception = await self._make_request(
  46.                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  47.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/sessions.py", line 192, in _make_request
  48.     response = await self._rate_limiter.call(
  49.                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  50.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/rate_limit.py", line 51, in call
  51.     response = await request_function(*args, **kwargs)
  52.                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  53.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/asyncprawcore/requestor.py", line 80, in request
  54.     raise RequestException(exc, args, kwargs) from None
  55. asyncprawcore.exceptions.RequestException: error with request
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement