hono icon indicating copy to clipboard operation
hono copied to clipboard

Requests getting stuck in pending

Open uxkjaer opened this issue 3 years ago • 1 comments

I'm trying to use Hono together with Bun as a local dev server. I want to serve my resources through the server. Currently when I run the app, it is trying to serve the resources, but requests are getting stuck in pending. It seems to random which requests freezes in pending. image

Any suggestions?

uxkjaer avatar Jul 13 '22 06:07 uxkjaer

Hi @uxkjaer !

I want to know your code or snippets. Serving static files is not implemented in the current version (serve-static middleware for Bun will be available in the next version v2.0.0).

Do you use the code like in the example folder at the Bun repository? https://github.com/oven-sh/bun/blob/main/examples/http-file.ts#L5

yusukebe avatar Jul 13 '22 07:07 yusukebe

I'll close this issue. Feel free to reopen it.

yusukebe avatar Oct 16 '22 10:10 yusukebe