Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [BUN] Post request body reading in production build hangs forever using Bun #95

Closed
itsyoboieltr opened this issue Jan 5, 2024 · 2 comments

Comments

@itsyoboieltr
Copy link

Reproduction: solidstart-post-repro

Using the bun adapter, only in production builds (during dev this works), getting the body of a post request will hang forever.

export const POST = async (event: APIEvent) => {
  console.log(await event.request.json());
  return new Response('ok');
};

Possible ideas what could be wrong:

@itsyoboieltr itsyoboieltr changed the title [BUG] Post request body reading in production build hangs forever using Bun [BUG] [BUN] Post request body reading in production build hangs forever using Bun Jan 5, 2024
@edivados
Copy link
Contributor

This seems to be fixed in 0.1.3. Running the example with vinxi 0.1.3 in prod worked for me.

References:

@itsyoboieltr
Copy link
Author

@edivados it does work! Thank you for your work guys :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants