You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is this issue currently blocking your project? (yes/no): no
is this issue affecting a production system? (yes/no): no
Context
node version: bun 1.x
module version with issue: 21.3.x
last module version without issue: -
environment (e.g. node, browser, native): bun
used with (e.g. hapi application, another framework, standalone, ...): hapi application
any other relevant information: –
What are you trying to achieve or the steps to reproduce?
Experimenting with bun.
import*asHapifrom'@hapi/hapi';// this is necessary, because bun does not support this perf_hooks api right now// <https://github.com/oven-sh/bun/issues/5804>constPerfHooks=require('perf_hooks');PerfHooks.performance.eventLoopUtilization=function(){}constinit=async()=>{constserver=Hapi.server({port: 4000,host: 'localhost'});server.route({path: "/api/test",method: "POST",handler: function(){console.log("successful")return{status: "ok"}}})awaitserver.start();console.log('Server running on %s',server.info.uri);};init();
@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.
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
The text was updated successfully, but these errors were encountered: