★ wanayoo — archive 1999 https://github.com/MagicStack/uvloop/issues/274Nouvelle recherche | Portail wanayoo
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 #274

Open
dark0ghost opened this issue Oct 3, 2019 · 10 comments
Open

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

dark0ghost opened this issue Oct 3, 2019 · 10 comments

Comments

@dark0ghost
Copy link

@dark0ghost dark0ghost commented Oct 3, 2019

  • uvloop version:uvloop==0.13.0
  • Python version: 3.7.3
  • Platform: debian 10
@dark0ghost
Copy link
Author

@dark0ghost dark0ghost commented Oct 3, 2019

  • uvloop version:uvloop==0.13.0
  • Python version: 3.7.3
  • Platform: debian 10

traceback : https://pastebin.com/q2yvq236
handler: https://pastebin.com/RhdV38Zw
class pastebin : https://gist.github.com/dark0ghost/216348a1ed14468933bf649c1427af21
was use uvloop and send traceback, if use asyncio loop , then no traceback

@1st1
Copy link
Member

@1st1 1st1 commented Oct 3, 2019

@asvetlov Any ideas what might be going on here? I'm wondering why the behaviour of aiohttp.Timeout might be different on vanilla vs uvloop

@1st1 1st1 added the need more info label Oct 24, 2019
@asvetlov
Copy link
Contributor

@asvetlov asvetlov commented Oct 24, 2019

The error is generated if asyncio.current_task() returns None.
Normally, it should never happen if the call is performed from async function like in provided code snippets (await aiohttp_session.post(...))

@dark0ghost
Copy link
Author

@dark0ghost dark0ghost commented Oct 24, 2019

What need information?

@asvetlov
Copy link
Contributor

@asvetlov asvetlov commented Oct 24, 2019

Instruction on how to reproduce the problem locally on my laptop would be awesome!

FYI, I'm able to run aiohttp test suite on uvloop without any problem except one test that heavily mocks asyncio transport details.

@dark0ghost
Copy link
Author

@dark0ghost dark0ghost commented Oct 24, 2019

Full code https://github.com/dark0ghost/async_py_bot, but need fill json , then bot started. Or unplug module

@asvetlov
Copy link
Contributor

@asvetlov asvetlov commented Oct 24, 2019

It doesn't look like the easy reproducible example, sorry.

@1st1
Copy link
Member

@1st1 1st1 commented Oct 25, 2019

@dark0ghost would really help if you could give us a single Python file that reproduces the bug along with clear instructions how to run it.

@dark0ghost
Copy link
Author

@dark0ghost dark0ghost commented Dec 2, 2019 •

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.