never awaited 🐍 Python

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

  1. Add await
  2. Use asyncio.run(main()) from sync entry points
  3. Schedule with asyncio.create_task(...)

Detailed fix by platform

Python

  1. result = await fetch(url)

How to diagnose

  1. Call — Which call is missing await?
  2. 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.