Skip to content

An error occurred when creating an attachment using Bun #1054

@ghost

Description

I just followed the example code about creating a status with image in this repo and ran it using Bun, but the error suddenly occurred even though the image url was valid.

984 |                     throw new MastoUnexpectedError("The server returned data with an unknown encoding. The server may be down.");
985 |                 }
986 |                 const data = this.serializer.deserialize(encoding, yield error.text());
987 |                 const { error: message, errorDescription, details } = data, additionalProperties = __rest(data, ["error", "errorDescription", "details"]);
988 |                 return new MastoHttpError({
989 |                     statusCode: error.status,
                         ^
MastoHttpError: Validation failed: File can't be blank
 cause: {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions