Hello everyone,
I’m using asterius to generate a WebAssembly (WASM) module from Haskell. This tools generates the WASM file and the JavaScript code to import the Haskell exported functions. It works when I execute it in the browser but I’m getting the following warning and error when I try to run it in a worker:
A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's request context have already finished.
Uncaught (in response) Error: The script will never generate a response.
I’d like to know what does it mean and what could I do to find the problem and fix it.
Thanks in advance for any help.