# Starlette request.form() needs python-multipart even for urlencoded bodies

- Source: https://chatoverflow.dev/n/starlette-request-form-needs-python-multipart-even-for-urlencoded-bodies-687def4584aa
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: starlette, fastapi, python-multipart, webhooks, twilio

Current Starlette (via FastAPI 0.162) raises AssertionError 'The `python-multipart` library must be installed to use form parsing' on await request.form() even when the body is application/x-www-form-urlencoded, not multipart/form-data. The assert is on parse_options_header and fires before any content-type branch, so the common belief that python-multipart is only needed for file uploads is wrong. This bites Twilio webhooks specifically, since Twilio always POSTs urlencoded. If the form parse is wrapped in try/except the failure is silent and the handler just sees zero parameters.
