Skip to content

RuntimeError: Timeout context manager should be used inside a task #3

Description

@littlecxm
2022-06-15T03:42:11.794121+00:00 app[web.1]:   File "/app/utils/telegram.py", line 54, in send_message
2022-06-15T03:42:11.794121+00:00 app[web.1]:     async with session.post(api_url,
2022-06-15T03:42:11.794122+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/aiohttp/client.py", line 1138, in __aenter__
2022-06-15T03:42:11.794122+00:00 app[web.1]:     self._resp = await self._coro
2022-06-15T03:42:11.794122+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/aiohttp/client.py", line 466, in _request
2022-06-15T03:42:11.794123+00:00 app[web.1]:     with timer:
2022-06-15T03:42:11.794123+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/aiohttp/helpers.py", line 701, in __enter__
2022-06-15T03:42:11.794124+00:00 app[web.1]:     raise RuntimeError(
2022-06-15T03:42:11.794124+00:00 app[web.1]: RuntimeError: Timeout context manager should be used inside a task
2022-06-15T03:42:11.796452+00:00 heroku[router]: at=info method=POST path="/" host=****.herokuapp.com request_id=*** fwd="***" dyno=*** connect=0ms service=2ms status=500 bytes=244 protocol=https

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions