"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
kian
kian12mo ago
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
kian
kian12mo ago
That should give you the actual panic message.
John The Cooling Fan
Oh, thank you! That helped diagnose it!
PizzaConsole
PizzaConsole10mo ago
What ultimately was the issue, I am experiencing something similar
John The Cooling Fan
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
Want results from more Discord servers?
Add your server