# Error on try load chat

**URL:** <https://community.hubspot.com/t/error-on-try-load-chat/15135>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [July 4, 2019, 7:56pm UTC](https://community.hubspot.com/t/error-on-try-load-chat/15135 "2019-07-04T19:56:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matheusmurta](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matheusmurta/32/79644_2.png) [@matheusmurta](https://community.hubspot.com/u/matheusmurta)\
**Post date:** [July 4, 2019, 7:56pm UTC](https://community.hubspot.com/t/error-on-try-load-chat/15135/1 "2019-07-04T19:56:48Z")

</div>

Error on hubspot load chat:

`window.HubSpotConversations.widget.load({ widgetOpen: false });`

events.js:25 Uncaught TypeError: Failed to execute ‘dispatchEvent’ on ‘EventTarget’: parameter 1 is not of type ‘Event’.  
at o (events.js:25)  
at Object.messagesInitialized (events.js:33)  
at WidgetShell.js:548  
at XMLHttpRequest.\<anonymous\> (fetchWidgetData.js:60)  
o @ events.js:25  
messagesInitialized @ events.js:33  
(anonymous) @ WidgetShell.js:548  
(anonymous) @ fetchWidgetData.js:60  
XMLHttpRequest.send (async)  
h @ fetchWidgetData.js:79  
value @ WidgetShell.js:547  
(anonymous) @ throttle.js:25  
value @ WidgetShell.js:592  
d @ startOnceReady.js:32  
l @ startOnceReady.js:43  
(anonymous) @ start.js:19  
n @ bootstrap:19  
(anonymous) @ bootstrap:83  
(anonymous) @ bootstrap:83

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [July 9, 2019, 9:48am UTC](https://community.hubspot.com/t/error-on-try-load-chat/15135/2 "2019-07-09T09:48:38Z")

</div>

Hey @matheusmurta ,

This seems like the same issue we’re working on in the following topic: If it’s alright with you, let’s try to consolidate our work to a single topic?

[https://community.hubspot.com/t5/APIs-Integrations/Erro-in-HubSpotConversations-widget-load-on-EventTarget/m-p/278930/highlight/false#M25544](https://community.hubspot.com/t5/APIs-Integrations/Erro-in-HubSpotConversations-widget-load-on-EventTarget/m-p/278930/highlight/false#M25544)
