Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
littlecxm opened this issue Jun 15, 2022 · 1 comment
Open

Comments

@littlecxm
Copy link

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
hykilpikonna added a commit to hykilpikonna/github-webhook-to-telegram that referenced this issue Jan 3, 2023
@juanpabloxk
Copy link

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants