Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/home/gmktec/Programming/Bots/basedcount_bot/basedcount_bot.py", line 46, in wrapper
- await func(reddit_instance, mongo_client)
- File "/home/gmktec/Programming/Bots/basedcount_bot/basedcount_bot.py", line 123, in check_mail
- async for message in reddit_instance.inbox.unread(limit=None): # Message
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/models/listing/generator.py", line 34, in __anext__
- await self._next_batch()
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/models/listing/generator.py", line 89, in _next_batch
- self._listing = await self._reddit.get(self.url, params=self.params)
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/util/deprecate_args.py", line 51, in wrapped
- return await _wrapper(*args, **kwargs)
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/reddit.py", line 785, in get
- return await self._objectify_request(method="GET", params=params, path=path)
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/reddit.py", line 567, in _objectify_request
- await self.request(
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/util/deprecate_args.py", line 51, in wrapped
- return await _wrapper(*args, **kwargs)
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncpraw/reddit.py", line 1032, in request
- return await self._core.request(
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 383, in request
- return await self._request_with_retries(
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 286, in _request_with_retries
- response, saved_exception = await self._make_request(
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 192, in _make_request
- response = await self._rate_limiter.call(
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/rate_limit.py", line 50, in call
- kwargs["headers"] = await set_header_callback()
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/sessions.py", line 337, in _set_header_callback
- await self._authorizer.refresh()
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/auth.py", line 438, in refresh
- await self._request_token(
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/auth.py", line 154, in _request_token
- response = await self._authenticator._post(url=url, **data)
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/auth.py", line 54, in _post
- response = await self._requestor.request(
- File "/home/gmktec/Programming/Bots/basedcount_bot/.venv/lib/python3.10/site-packages/asyncprawcore/requestor.py", line 80, in request
- raise RequestException(exc, args, kwargs) from None
- asyncprawcore.exceptions.RequestException: error with request Session is closed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement