Spot the bug in async chain invocation

from LangChain
LangChain 1.4.0 beginner 4 min 1 issue to find

Find the async invocation bug in this generated handler.

Python
async def handle_ticket(chain, ticket):
    response = chain.ainvoke(ticket)
    return response.content
Open in playground
Report an error