Skip to content

bun server exist with SEGFAULT signal when upload file. #5171

Closed

Description

I tried the following code:

import { Elysia, t } from "elysia";

const app = new Elysia()
  .post("/", async ({ body: { data } }) => data, {
    body: t.Object({
      data: t.File({ maxSize: 100000 }),
    }),
  })
  .listen(8000);

console.log(`app is running at ${app.server?.hostname}:${app.server?.port}`);

When i use postmen to test this upload file api, the server get crash when I upload some kind of file such as image, pdf.

Originally reported on Discord: bun server exist with SEGFAULT signal when upload file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcrashAn issue that could cause a crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions