# Error audio files when deploy on heroku

**URL:** <https://phaser.discourse.group/t/error-audio-files-when-deploy-on-heroku/7092>\
**Category:** Phaser 3\
**Created:** [August 4, 2020, 4:04pm UTC](https://phaser.discourse.group/t/error-audio-files-when-deploy-on-heroku/7092 "2020-08-04T16:04:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marvin](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/marvin/32/3788_2.png) [@Marvin](https://phaser.discourse.group/u/Marvin)\
**Post date:** [August 4, 2020, 4:04pm UTC](https://phaser.discourse.group/t/error-audio-files-when-deploy-on-heroku/7092/1 "2020-08-04T16:04:48Z")

</div>

Helo,

I am facing some issues deploying my game with Heroku. The problem is with the audio files, the error is `Error decoding audio: bgMusic - Unable to decode audio data` and `Uncaught (in promise) DOMException: Unable to decode audio data`.  
I am using phaser 3 and I could not find how to fix the issue. Any help will be welcome.

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [August 4, 2020, 4:16pm UTC](https://phaser.discourse.group/t/error-audio-files-when-deploy-on-heroku/7092/2 "2020-08-04T16:16:47Z")

</div>

Try opening the audio URLs directly in your browser.

---

<div class="post-metadata">

**Author:** ![Marvin](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/marvin/32/3788_2.png) [@Marvin](https://phaser.discourse.group/u/Marvin)\
**Post date:** [August 4, 2020, 4:29pm UTC](https://phaser.discourse.group/t/error-audio-files-when-deploy-on-heroku/7092/3 "2020-08-04T16:29:12Z")

</div>

Yes, they work. Locally the game works but when I deployed it to heroku I got those errors and the game is not loading

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [August 4, 2020, 4:51pm UTC](https://phaser.discourse.group/t/error-audio-files-when-deploy-on-heroku/7092/4 "2020-08-04T16:51:59Z")

</div>

You open the Heroku audio URLs in the browser and what happens?
