Skip to content

Cloudflare Workers ASGI adapter only consumes the first yielded chunk from async generators used in StreamingResponse. #67

@adewale

Description

@adewale

The Cloudflare Workers ASGI adapter only consumes the first yielded chunk from async generators used in StreamingResponse. For R2 content spanning multiple ReadableStream chunks (anything over ~4 KB), the response is silently truncated.

See: https://github.com/adewale/python-workers-issues/tree/main/2-fastapi-r2-streaming for an example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions