Skip to content

AioResponse.read do not support amt argument if read big file. #98

Description

@ruanimal

code

    downloaded_data = b""
    obj = await bucket.get_object(path)
    while chunk := await obj.read(4096):  
        downloaded_data += chunk

exception

self = <aiooss2.http.AioResponse object at 0x1090c5f10>, amt = 4096

    async def read(self, amt=None) -> bytes:
        """read the contents from the response"""
        if self.__all_read:
            return b""
    
        if amt:
>           raise NotImplementedError
E           NotImplementedError

.venv/lib/python3.12/site-packages/aiooss2/http.py:39: NotImplementedError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions