Closed raphael-papazikas closed 5 months ago
@raphael-papazikas If a nodejs replica doesn't run Hapi, but Hapi runs in anything Node 16+, then it's not Hapi, it's the nodejs replica. I think the onus is on you guys to find out where the issue lies and report it to the Bun team. You may be solving a critical problem where Bun does not in fact behave like NodeJS.
Unable to repro today on Bun 1.1.10 & @hapi/hapi
version 21.3.9
Server code above prints "successful" and curl response is {"status":"ok"}
@reedspool @raphael-papazikas seems like this is no longer an issue with newer versions of Bun.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
Experimenting with bun.
Steps to reproduce
bun install --backend=copyfiles
bun run index.ts
Server running on http://localhost:4000
What was the result you got?
Received 500 status code from the server. Seems like it throws through this line in wreck: https://github.com/hapijs/wreck/blob/f53808548f8253c194da0f32ac9ae3d986e86d79/lib/index.js#L434 => https://github.com/hapijs/wreck/blob/f53808548f8253c194da0f32ac9ae3d986e86d79/lib/index.js#L429C18-L429C18
What result did you expect?
I would expect the same behavior as for node environment