skymethod / denoflare

Develop, test, and deploy Cloudflare Workers with Deno.
https://denoflare.dev
MIT License
710 stars 36 forks source link

`denoflare serve` in local isolation mode hangs when using importText/Binary/Wasm on Deno v1.34.2 #56

Closed johnspurlock-skymethod closed 1 year ago

johnspurlock-skymethod commented 1 year ago

calling import() in ModuleWorkerExecution.create hangs indefinately starting in deno v1.34.2 when using importText, importBinary, or importWasm

Workaround for now is to stay on Deno v1.34.1.

Looks to be a possible Deno regression, as the entire module appears to be loaded and init successfully, including fetched resources over rpc (importX calls are translated to fetches when not on Cloudflare), just never returns to the caller.

Will look to create a small repro case and send over to the Deno folks.

johnspurlock-skymethod commented 1 year ago

Was able to fix it with a surgical workaround in rpc fetch body streams.