#36193: AssertionError: Invalid ASGI message after request body: http.request
-------------------------------------+-------------------------------------
Reporter: Dominik Gasparic | Owner: (none)
Type: Bug | Status: closed
Component: HTTP handling | Version: 5.0
Severity: Normal | Resolution: invalid
Keywords: ASGI, | Triage Stage:
http.disconect, | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Carlton Gibson):
This looks like Unit isn't correctly handling the `more_body` key of the
`http.request` event.
https://asgi.readthedocs.io/en/latest/specs/www.html#request-receive-event
After an `http.request` event where `more_body` is `False` the only
permitted event is `http.disconnect`. Hence the assertion.
--
Ticket URL: <https://code.djangoproject.com/ticket/36193#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019519c00db1-f4d77d67-a58d-464f-9ce1-877aa0f8d8e1-000000%40eu-central-1.amazonses.com.