Skip to content
Discussion options

You must be logged in to vote

Would you please try to find a minute for an ELI5 question?

Sure.

As far as I can tell, if an exception is raised, this method tries to report it back out to the caller.

Correct.

TypeError: object is not callable.

Do you have the traceback?


Why is the send parameter passed to the freshly created response object?

Because a Response object is an ASGI application by itself, and to run it, you need to pass scope, receive, and send.

It just seems to me that something is missing, like maybe the line should be something like await send(response, scope, receive)

This question makes me think that you don't understand the ASGI protocol itself. I recommend reading about it a bit, but to t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@chrisinmtown
Comment options

@Kludex
Comment options

Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants