RuntimeWarning: coroutine 'fetch' was never awaited
An async function was called without await, so it never ran.
Seen on:
Python
Meaning
Calling an async def function returns a coroutine object; nothing happens until it’s awaited or scheduled. The value you used is the coroutine, not the result.
Common causes
- Missing await
- Calling async functions from sync code
- Passing an async function as a sync callback
⚡ Quick fix
- Add await
- Use asyncio.run(main()) from sync entry points
- Schedule with asyncio.create_task(...)
Detailed fix by platform
Python
result = await fetch(url)
How to diagnose
- Call — Which call is missing await?
- Context — Sync or async caller?
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 2 Oct 2026