Advertisement
basedcount_bot

ServerError: received 500 HTTP response

Jan 6th, 2025
50
0
5 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.70 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 322, in _request_with_retries
  45.     raise self.STATUS_EXCEPTIONS[response.status](response)
  46. asyncprawcore.exceptions.ServerError: received 500 HTTP response
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement