Closed taisan11 closed 3 months ago
It worked in my environment (Bun 1.1.18). Please give me more information of environment.
Bun version is v1.1.21
It worked on latest Bun 1.1.21.
Hi @taisan11
This may be a bug. I'll investigate it. Thanks for reporting.
This is not a Hono's bug but a Bun's matter, though I don't know if it is a real bug or not: https://github.com/oven-sh/bun/issues/11756
Regarding this issue, we don't have anything we can do. So, I am closing this now.
Looking at the environmental source of the issue, it seems to be a bug on bun with linux.
I'm using windows, so I may not have been able to reproduce the bug.
@taisan11 The workaround for now is to put the ip address in the Env object first. (you should use Bun.serve)
I am experiencing the same issue. I am using macOS M3 with Bun version 1.1.21. Not being able to retrieve the IP address is a significant problem.
hi @faytekin
This problem can be avoided by passing the ip address directly to the env object.
Or by setting it to Variables
in the frontmost middleware.
Update: https://github.com/oven-sh/bun/issues/11756 was fixed last week. It's working now
What version of Hono are you using?
4.5.2
What runtime/platform is your app running on?
Bun
What steps can reproduce the bug?
What is the expected behavior?
return IP address
What do you see instead?
Internal Server Error
Additional information
error message on console