"A hanging Promise was cancelled" in a rust-wasm worker
I am getting this message from one route handler in my worker. With
console_debug
I managed to pinpoint it to call to hound::WavWriter::new
. I don't think there was a panic, but the function doesn't even return before the hanging promise is cancelled. What part of the used tools/libraries might be the actual culprit and how do I fix this?5 Replies
GitHub
GitHub - rustwasm/console_error_panic_hook: A panic hook for wasm32...
A panic hook for wasm32-unknown-unknown that logs panics with console.error - GitHub - rustwasm/console_error_panic_hook: A panic hook for wasm32-unknown-unknown that logs panics with console.error
That should give you the actual panic message.
Oh, thank you! That helped diagnose it!
What ultimately was the issue, I am experiencing something similar
It was a panic somewhere, I think caused by some wrong configuration being input into one of the libs
Use the linked lib to actually see the panic message
I didn't know that panics are not logged by default