# Web app FMOD studio API examples give error... what am I missing?

**URL:** <https://qa.fmod.com/t/web-app-fmod-studio-api-examples-give-error-what-am-i-missing/19653>\
**Category:** FMOD Engine\
**Created:** [December 17, 2022, 8:04pm UTC](https://qa.fmod.com/t/web-app-fmod-studio-api-examples-give-error-what-am-i-missing/19653 "2022-12-17T20:04:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwhiz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/gwhiz/32/4384_2.png) [@gwhiz](https://qa.fmod.com/u/gwhiz)\
**Post date:** [December 17, 2022, 8:04pm UTC](https://qa.fmod.com/t/web-app-fmod-studio-api-examples-give-error-what-am-i-missing/19653/1 "2022-12-17T20:04:05Z")

</div>

Hi All, I found the Reference API with the Javascript tab here: [https://www.fmod.com/docs/2.02/api/studio-api-common.html](https://www.fmod.com/docs/2.02/api/studio-api-common.html) .  
Once I figured out how to download the Studio API here:  
[https://www.fmod.com/download#fmodengine](https://www.fmod.com/download#fmodengine)

I found the examples:  
/Users/MGW/…/testapp/fmodstudioapi20211html5/api/studio/examples

I popped the examples folder onto a webserver and tried to run them. The references to /public failed so I changed them to ./public sine the examples folder is not the web root.  
When I run them now, they find the assets in ./public, but all give this error:

Creating FMOD System object

load\_banks.js:111 grabbing system object from temporary and storing it

load\_banks.js:123 set DSP Buffer size.

load\_banks.js:135 initialize FMOD

fmodstudio.js:9 Uncaught TypeError: Cannot read properties of undefined (reading ‘addModule’)  
at Array.ASM\_CONSTS (fmodstudio.js:9:15958)  
at \_emscripten\_asm\_const\_i (fmodstudio.js:9:23767)  
at bSe (fmodstudio.js:14:60003)  
at Fee (fmodstudio.js:19:73192)  
at YLe (fmodstudio.js:16:69243)  
at qid (fmodstudio.js:49:68886)  
at $Qd (fmodstudio.js:25:7708)  
at \_Qd (fmodstudio.js:25:7488)  
at Mdf (fmodstudio.js:23:597)  
at tnf (fmodstudio.js:13:3984)

Is there another module I’m missing ?  
Many thanks!

---

<div class="post-metadata">

**Author:** ![gwhiz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/gwhiz/32/4384_2.png) [@gwhiz](https://qa.fmod.com/u/gwhiz)\
**Post date:** [December 17, 2022, 10:40pm UTC](https://qa.fmod.com/t/web-app-fmod-studio-api-examples-give-error-what-am-i-missing/19653/2 "2022-12-17T22:40:13Z")

</div>

OK I found the issue. This gave me a clue:

> <https://github.com/processing/p5.js-sound/issues/454>
>
> \<img width="349" alt="Screen Shot 2020-04-24 at 5 58 04 PM" src="https://user-im…ages.githubusercontent.com/64287601/80260110-29cf1200-8655-11ea-8a87-3b43733c8fc2.png"\>

Turns out FMOD requires HTTPS. Once I installed certbot and the letsencrypt cert on my web server everything works!

Many thanks for reading.
