Advertisement
basedcount_bot

RequestException: error with request [Errno 104] Connection reset by peer

Nov 21st, 2024
60
0
6 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.10 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.10/site-packages/asyncpraw/models/util.py", line 160, 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.10/site-packages/asyncpraw/models/util.py", line 160, in <listcomp>
  9.     [result async for result in function(limit=limit, **function_kwargs)]
  10.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/models/listing/generator.py", line 34, in __anext__
  11.     await self._next_batch()
  12.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/models/listing/generator.py", line 89, in _next_batch
  13.     self._listing = await self._reddit.get(self.url, params=self.params)
  14.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/util/deprecate_args.py", line 51, in wrapped
  15.     return await _wrapper(*args, **kwargs)
  16.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/reddit.py", line 785, in get
  17.     return await self._objectify_request(method="GET", params=params, path=path)
  18.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/reddit.py", line 567, in _objectify_request
  19.     await self.request(
  20.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/util/deprecate_args.py", line 51, in wrapped
  21.     return await _wrapper(*args, **kwargs)
  22.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/reddit.py", line 1032, in request
  23.     return await self._core.request(
  24.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 383, in request
  25.     return await self._request_with_retries(
  26.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 286, in _request_with_retries
  27.     response, saved_exception = await self._make_request(
  28.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 192, in _make_request
  29.     response = await self._rate_limiter.call(
  30.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/rate_limit.py", line 51, in call
  31.     response = await request_function(*args, **kwargs)
  32.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/requestor.py", line 80, in request
  33.     raise RequestException(exc, args, kwargs) from None
  34. asyncprawcore.exceptions.RequestException: error with request [Errno 104] Connection reset by peer
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement