Skip to content

File downloads are empty #117

Closed
Closed
@CodeGenie1

Description

@CodeGenie1

Hi Phil,
spotted this one trying to download a bitmap image stored in parse. When you call (with await) the parse_file download method, it is returning ok and the file is created in the cache directory but it has zero bytes. I think the issue is simply that the file.writeAsBytes(response.bodyBytes) at line 68 in parse_file is not being awaited, so nothing is written to the file. You could use the writeAsBytesAsync method instead or just await.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions