# DeepAR is not defined even on the web example app, server error

**URL:** https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61
**Category:** SDK
**Created:** [September 2, 2022, 6:35am UTC](https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61 "2022-09-02T06:35:29Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![visual3D](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@visual3D](https://forum.deepar.ai/u/visual3D)
#### Post date: [September 2, 2022, 6:35am UTC](https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61/1 "2022-09-02T06:35:29Z")

</div>

Hi, I am working on a web app, everything was fine but suddenly the app stopped working, I get a server error, I also tried to open the html example app on different computer(in a  
different location), I get the same error, all I see is the blue loader blinking, please see attached images.

 ![image_1](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/232a1682d2d0a0faa8ab3667c068dfe2e9e2e84e.jpeg)  
 ![image_2](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/e890cb6ba11323656ec027b705cf903a0b6dd9d1.jpeg)  
 ![image_3](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/3d09d2eb59824e74c4af6ad0bad645cdbefc7f0e.jpeg)

---

<div class="post-metadata">

### Author: ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)
#### Post date: [September 2, 2022, 11:21am UTC](https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61/2 "2022-09-02T11:21:44Z")

</div>

Hello, @visual3D this looks like the deepar.js is unavailable from your host server.

Could you please check that all of the files are still in the correct locations and that you are running the example as listed in the quickstart README?

- Download the SDK from [https://developer.deepar.ai](https://developer.deepar.ai/) and copy the deepar.js, deepar.wasm and models-68-extreme.bin to lib folder
- Open the terminal and go to the example folder
- Run python server.py in terminal
- Open the browser and enter “[http://localhost:8888](http://localhost:8888/)” in the address bar

If none of that helps, please let us know

---

<div class="post-metadata">

### Author: ![visual3D](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@visual3D](https://forum.deepar.ai/u/visual3D)
#### Post date: [September 2, 2022, 2:14pm UTC](https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61/3 "2022-09-02T14:14:50Z")

</div>

I see it is working that way, now I have 2 questions:

- I haven’t changed anything, everything is still there - including deepar.js deepar.wasm and models-68-extreme.bin, why has it stopped working?
- I use Go Live to run the app(It just worked fine, no issues), should I do something else? for example run the server.py by code instead of Go Live? can you direct me to a corresponding link ?

Thanks.

---

<div class="post-metadata">

### Author: ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)
#### Post date: [September 2, 2022, 2:28pm UTC](https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61/4 "2022-09-02T14:28:14Z")

</div>

Could you please give us more details about how you are running the example? Is this what you are using?

> **[Live Server - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer)**
>
> Extension for Visual Studio Code - Launch a development local Server with live reload feature for static & dynamic pages

If so, do you know the exact version and which ports might be used?

Our test environment includes running with the python server and testing on [http://localhost:8888](http://localhost:8888/)

as listed in the example

> **[GitHub - DeepARSDK/quickstart-web-js: DeepAR SDK for Web example project](https://github.com/DeepARSDK/quickstart-web-js)**
>
> DeepAR SDK for Web example project. Contribute to DeepARSDK/quickstart-web-js development by creating an account on GitHub.

We aren’t sure what might be causing your issue to happen if you use different methods of running.

---

<div class="post-metadata">

### Author: ![visual3D](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@visual3D](https://forum.deepar.ai/u/visual3D)
#### Post date: [September 3, 2022, 7:39am UTC](https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61/5 "2022-09-03T07:39:30Z")

</div>

Thank you for your reply and sorry for not being clear enough, we both talking about the same live server and the same example, unlike in the read me file, I used the Go Live(visual studio live server) instead of running the py server and everything worked fine till now, the version of the live server is v5.7.9 and the port is 5500, after using py server everything is OK and I just wanted to know if there is a way to use live server correctly, and the other thing is how do I deploy the app with a py server? what I did till now is uploading to amazon s3 or vercel as a javascript web app with no any relationship to py server, Thanks again.

---

<div class="post-metadata">

### Author: ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)
#### Post date: [September 5, 2022, 11:44am UTC](https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61/6 "2022-09-05T11:44:54Z")

</div>

I’m glad that using the server.py has helped.

I’m not entirely sure what might have caused the issue with the visual studio live server, but you could check these values in your settings.md

- **`liveServer.settings.root`:** To change root of server in between workspace folder structure, use `/` and absolute path from workspace.

- **`liveServer.settings.port`:** Customize Port Number of your Live Server. If you want random port number, set it as `0`.

* * *

To make sure your root folder is set correctly, and match the port we use with out python example

The serever.py script is only for local testing, your deployment method looks correct.

---

<div class="post-metadata">

### Author: ![visual3D](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@visual3D](https://forum.deepar.ai/u/visual3D)
#### Post date: [September 8, 2022, 6:24am UTC](https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61/7 "2022-09-08T06:24:34Z")

</div>

Using py server only for dev is a big relief for me,  
live server seems to be OK,  
everything is working fine now,  
Thanks.

---

<div class="post-metadata">

### Author: ![Omar\_Salem](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/omar_salem/32/215_2.png) [@Omar\_Salem](https://forum.deepar.ai/u/Omar_Salem)
#### Post date: [May 10, 2023, 2:29am UTC](https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61/8 "2023-05-10T02:29:38Z")

</div>

hi @visual3D @jelena

i am trying to make it on my domain  
i tried to run it locally and it runs fine  
but i don’t know which files to upload to the server  
can you please tell me  
i tried both but nothing works

 ![Screenshot 2023-05-10 032836](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/6244770bb1be6d5658c44a21ee66caea20f35a74.png)  
 ![Screenshot 2023-05-10 051931](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/2dbd553d1c6e59ef4cfab5f4e0775a305545b36e.png)

and it gives me this error

 ![Screenshot 2023-05-10 033036](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/ce60feb9e345cbbe0fa51d783bee66debfd3eb2e.png)

---

<div class="post-metadata">

### Author: ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)
#### Post date: [May 10, 2023, 12:07pm UTC](https://forum.deepar.ai/t/deepar-is-not-defined-even-on-the-web-example-app-server-error/61/9 "2023-05-10T12:07:26Z")

</div>

Answered in [Uploading Website to my domain - #5 by Disho](https://forum.deepar.ai/t/uploading-website-to-my-domain/291/5)
