-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
unref() missing on HttpServer #4333
Comments
Closed
For an example, how it is used in a production project: Retested in |
I just ran into this on 1.0.4. |
Still an issue in |
Still an issue for me as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Bun is running?
1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
Create a file with the following content:
Gives an error:
What is the expected behavior?
I would expect the error not to be thrown
What do you see instead?
TypeError: require("node:http").createServer().unref is not a function. (In 'require("node:http").createServer().unref()', 'require("node:http").createServer().unref' is undefined)
Additional information
I was trying out whether OpenTelemetry is working through Bun but I am getting the above error when trying to create an instance of the
PrometheusError
which uses the aboveunref()
call.Original error I received was:
The text was updated successfully, but these errors were encountered: