Advertisement
basedcount_bot

RequestException: error with request Session is closed

Nov 23rd, 2024
41
0
6 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.65 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 51, in call
  27.     response = await request_function(*args, **kwargs)
  28.   File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/requestor.py", line 80, in request
  29.     raise RequestException(exc, args, kwargs) from None
  30. asyncprawcore.exceptions.RequestException: error with request Session is closed
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement