The Workers runtime canceled this request because it detected that your Worker's code had hung
I'm trying to get peaks and duration from an MP3 file using workers. This is the function: https://paste.ofcode.org/WPQgzaPydsAJ5T45cxSLJF - Any ideas why it would work locally and fail in production with: The Workers runtime canceled this request because it detected that your Worker's code had hung and would never generate a response.
MPEGDecoder is a wasm library so it should work
1 Reply
probably saturated the event loop to the point it looked like a
while(true) {} loop from the outside. could you introduce any setTimeout or setImmediate breaks in the processing loop?