Getting DOMException: Failed to execute 'postMessage' on 'Window' when using example page

Hello
I'm facing the similar problem as @MarianOConnell in January in post (https://developer.mypurecloud.com/forum/t/webchat-deployment-giving-domexception-error/4400)
but do not see the reply or solution on it.
I'm using exact same example web page, changed org and deployment details, but same DOMException error at https://dhqbrvplips7x.cloudfront.net/webchat/620/storage-e462d181.js

Is this a configuration issue or something additionally should be changed in the example page?

Thanks in advacne

Console logs show this error:

storage-e462d181.js:208 Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin 'null' in a call to 'postMessage'.
at https://dhqbrvplips7x.cloudfront.net/webchat/620/storage-e462d181.js:208:3469
at n (https://dhqbrvplips7x.cloudfront.net/webchat/620/storage-e462d181.js:3:490)
at Generator._invoke (https://dhqbrvplips7x.cloudfront.net/webchat/620/storage-e462d181.js:3:1592)
at Generator.t. [as throw] (https://dhqbrvplips7x.cloudfront.net/webchat/620/storage-e462d181.js:3:669)
at n (https://dhqbrvplips7x.cloudfront.net/webchat/620/storage-e462d181.js:208:218)
at https://dhqbrvplips7x.cloudfront.net/webchat/620/storage-e462d181.js:208:331
(anonymous) @ storage-e462d181.js:208
n @ storage-e462d181.js:3
(anonymous) @ storage-e462d181.js:3
t. @ storage-e462d181.js:3
n @ storage-e462d181.js:208
(anonymous) @ storage-e462d181.js:208
Promise.then (async)
n @ storage-e462d181.js:208
(anonymous) @ storage-e462d181.js:208
t @ storage-e462d181.js:151
(anonymous) @ storage-e462d181.js:208
(anonymous) @ storage-e462d181.js:208

Thanks to @MarianOConnell respond I was able to get out of the issue.

Because I was testing it locally I should set reconnectEnabled: false,
and additionally make sure that I use Widget 1.0 deployment

Regards
RASKO

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.