# Hubspot scripts file not found error

**URL:** <https://community.hubspot.com/t/hubspot-scripts-file-not-found-error/10922>\
**Category:** CMS Development\
**Created:** [November 14, 2018, 4:24am UTC](https://community.hubspot.com/t/hubspot-scripts-file-not-found-error/10922 "2018-11-14T04:24:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![newbie12](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/newbie12/32/64675_2.png) [@newbie12](https://community.hubspot.com/u/newbie12)\
**Post date:** [November 14, 2018, 4:24am UTC](https://community.hubspot.com/t/hubspot-scripts-file-not-found-error/10922/1 "2018-11-14T04:24:21Z")

</div>

Hi

Im trying to embed a hubspot form on a html file but it doesn’t show up. A quick inspect showed the following errors:

 ![Screenshot 2018-11-14 at 12.19.05 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/d/dae0c2e88937164d8d06db2b0871dfa261da09cf.png)

I dont get why this happens.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![valerajoey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/valerajoey/32/35482_2.png) [@valerajoey](https://community.hubspot.com/u/valerajoey)\
**Post date:** [November 14, 2018, 4:43am UTC](https://community.hubspot.com/t/hubspot-scripts-file-not-found-error/10922/2 "2018-11-14T04:43:05Z")

</div>

can you provide us the link of the page your working on,

---

<div class="post-metadata">

**Author:** ![newbie12](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/newbie12/32/64675_2.png) [@newbie12](https://community.hubspot.com/u/newbie12)\
**Post date:** [November 14, 2018, 4:48am UTC](https://community.hubspot.com/t/hubspot-scripts-file-not-found-error/10922/3 "2018-11-14T04:48:51Z")

</div>

It is just a local file which isnt live yet. Could that be an issue?

I have attahed the section where the form has to be displayed and the hubspot form script below

```auto
//contact form
<div id="contact_us">
<div id="contact_form">
//hubspot form has to be displayed here
</div>
</div>

<!-- Hubspot Form -->
<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script>
hbspt.forms.create({
portalId: "573334",
formId: "3b984c12-b049-46b7-8d1a-66376f2c379b",
target: "#contact_form"
});
</script>

```

The HubSpot form embed code is placed just before the body is closed

---

<div class="post-metadata">

**Author:** ![valerajoey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/valerajoey/32/35482_2.png) [@valerajoey](https://community.hubspot.com/u/valerajoey)\
**Post date:** [November 14, 2018, 5:18am UTC](https://community.hubspot.com/t/hubspot-scripts-file-not-found-error/10922/4 "2018-11-14T05:18:26Z")

</div>

yes, that’s the problem as seen in your first screenshot the js src which supposed to be ref to HubSpot CDN was reference to your parent directory/root

---

<div class="post-metadata">

**Author:** ![valerajoey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/valerajoey/32/35482_2.png) [@valerajoey](https://community.hubspot.com/u/valerajoey)\
**Post date:** [November 14, 2018, 5:22am UTC](https://community.hubspot.com/t/hubspot-scripts-file-not-found-error/10922/5 "2018-11-14T05:22:12Z")

</div>

try to use this instead

```auto
//contact form
<div id="contact_us">
<div id="contact_form">
//hubspot form has to be displayed here
</div>
</div>

<!-- Hubspot Form -->
<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/v2.js"></script>
<![endif]--><script charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/v2.js"></script><script>hbspt.forms.create({
portalId: "573334",
formId: "3b984c12-b049-46b7-8d1a-66376f2c379b",
target: "#contact_form"
});
</script>

```

---

<div class="post-metadata">

**Author:** ![newbie12](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/newbie12/32/64675_2.png) [@newbie12](https://community.hubspot.com/u/newbie12)\
**Post date:** [November 14, 2018, 8:46am UTC](https://community.hubspot.com/t/hubspot-scripts-file-not-found-error/10922/6 "2018-11-14T08:46:58Z")

</div>

I had

`<script charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/v2.js"></script>`

in the head section and not along with the rest of the embed code.

I moved it down and it worked!

Thanks a lot for the help!
