Uncaught (in promise) DOMException: Unable to decode audio data Uncaught (in promise) DOMException: Unable to decode audio data node.js node.js

Uncaught (in promise) DOMException: Unable to decode audio data


I encountered the same error. Updating Chrome did not fix it. However, debugging in Firefox instead gave me a much more descriptive error:

The buffer passed to decodeAudioData contains an unknown content type.Uncaught (in promise) DOMException: MediaDecodeAudioDataUnknownContentTypeUncaught (in promise) DOMException: The given encoding is not supported.

Which by the way was occurring because the .mp3 file I wanted to load wasn't found. So I was making a web request, receiving the 404 HTML page, and trying to load that as an mp3, which failed as an 'unsupported audio format'.


I encountered the same issue. Upgrading Chrome to the latest release, eg 85.0.4183, resolved the issue for me.