# "No response from server" error with sound files

**URL:** <https://discourse.processing.org/t/no-response-from-server-error-with-sound-files/20586>\
**Category:** Libraries\
**Created:** [May 7, 2020, 3:23pm UTC](https://discourse.processing.org/t/no-response-from-server-error-with-sound-files/20586 "2020-05-07T15:23:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![achandra](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@achandra](https://discourse.processing.org/u/achandra)\
**Post date:** [May 7, 2020, 3:23pm UTC](https://discourse.processing.org/t/no-response-from-server-error-with-sound-files/20586/1 "2020-05-07T15:23:09Z")

</div>

Does anyone know what this error means? It happens on my code sometimes, I reload my sound files again and it becomes fine and then it happens after a while again.

 ![Screen Shot 2020-05-07 at 11.20.50 AM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/8085e91a6566ea22e084feb94c88b6c050566b84.png)

---

<div class="post-metadata">

**Author:** ![Sven](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sven/32/8293_2.png) [@Sven](https://discourse.processing.org/u/Sven)\
**Post date:** [May 7, 2020, 9:44pm UTC](https://discourse.processing.org/t/no-response-from-server-error-with-sound-files/20586/2 "2020-05-07T21:44:23Z")

</div>

Hard to tell with so little information to go on. If it fails and a simple refresh of the page solves the problem, maybe the error message means what it says literally? That your internet connection is somewhat shaky, like weak WiFi. Could that be a possibility?

One thing that stood out to me in [your sketch](https://editor.p5js.org/achandra/sketches/flm8aL1Xl) was this part in `index.html`:

```auto
  <script src="The Light of Day.mp3"></script>
  <script src="Short Meditation Music - 3 Minute Relaxation, Calming_cI4ryatVkKw.mp3"></script>
  <script src="The Mountain_Rk6_hdRtJOE.mp3"></script>
  <script src=" Tony Anderson - Ember_CfsTfmFNV_c.mp3"></script>

```

Did you intend that? The mp3 files probably won’t do a remarkable job posing as JavaScript. 😊

---

<div class="post-metadata">

**Author:** ![achandra](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@achandra](https://discourse.processing.org/u/achandra)\
**Post date:** [May 8, 2020, 4:56pm UTC](https://discourse.processing.org/t/no-response-from-server-error-with-sound-files/20586/3 "2020-05-08T16:56:37Z")

</div>

@Sven how do you think I can solve this?

This is my code: [https://editor.p5js.org/achandra/sketches/C44WogVw2](https://editor.p5js.org/achandra/sketches/C44WogVw2)

Ive been working with this for a long time and it didn’t have this error initially. Sometimes it shows this bug and then once I reload the sound files, it works again.

---

<div class="post-metadata">

**Author:** ![Sven](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sven/32/8293_2.png) [@Sven](https://discourse.processing.org/u/Sven)\
**Post date:** [May 8, 2020, 10:21pm UTC](https://discourse.processing.org/t/no-response-from-server-error-with-sound-files/20586/4 "2020-05-08T22:21:40Z")

</div>

I don’t know, as I can’t reproduce your problem yet. It works fine for me.

But I do think you should go back, read my last response, and answer my questions. 😉

---

<div class="post-metadata">

**Author:** ![achandra](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@achandra](https://discourse.processing.org/u/achandra)\
**Post date:** [June 19, 2020, 5:20am UTC](https://discourse.processing.org/t/no-response-from-server-error-with-sound-files/20586/5 "2020-06-19T05:20:43Z")

</div>

Hi,

I’m pretty new to coding so I haven’t been able to figure this out. ☹ I’ve been following what’s given on the p5js website for sound files and thats what’s giving the error I suppose, I’m not sure

Here’s the link – [https://p5js.org/reference/#/p5.SoundFile](https://p5js.org/reference/#/p5.SoundFile)

---

<div class="post-metadata">

**Author:** ![Sven](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sven/32/8293_2.png) [@Sven](https://discourse.processing.org/u/Sven)\
**Post date:** [June 19, 2020, 2:16pm UTC](https://discourse.processing.org/t/no-response-from-server-error-with-sound-files/20586/6 "2020-06-19T14:16:49Z")

</div>

Yeah, I saw that in your other thread. See my answer there. If you create a minimal sketch, as I suggest, we will probably figure out how to solve this from there. ☺

> [@"No response from serve"r error with sound files](https://discourse.processing.org/t/no-response-from-serve-r-error-with-sound-files/21986/2):
>
> Hello @achandra, I would love to help bust, just like last time, it’s a bit of a challenge. slight_smile Mainly because: I can’t reproduce the error, it works for me in Safari on macOS. You say the problem only appears sometimes. Those kinds of issues are the hardest to debug. (You’ll want a bug to be reproducible.) The code samples you have is relatively complex and contains some stuff that makes little sense, like importing mp3 files and try parsing them as JavaScript (\<script src=…
