Page 1 of 1

Javascript Console Error Message

Posted: 08 April 2020, 18:59
by tchobello
Hello,
I have this message appearing in the Javascript Console and it keeps growing and growing all game long.

Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.


Where does it come from ?

Re: Javascript Console Error Message

Posted: 10 April 2020, 00:18
by Victoria_La
Anything else useful? Stack trace?

Re: Javascript Console Error Message

Posted: 10 April 2020, 08:36
by Een
This looks like trying to play a sound programmatically. Browsers now require a user interaction (such as a click) for playing a sound.

Re: Javascript Console Error Message

Posted: 10 April 2020, 08:37
by tchobello
well, after checking, it happens on both projects I'm working on...

Can someone look at what happens in the Javascript Console on other games ?
It increases on each move.

@Victoria_LA
It starts with

Code: Select all

Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
doPlayFile       @ ly_studio.js:2
doPlay            @ ly_studio.js:2
playSound       @ ly_studio.js:2
dispatchNotification       @ ly_studio.js:2
onNotification        @ ly_studio.js:2
pullResynchronizeLogsToDisplay      @ ly_studio.js:2

Re: Javascript Console Error Message

Posted: 10 April 2020, 22:49
by Victoria_La
Do you send notifications during startup code?

Re: Javascript Console Error Message

Posted: 11 April 2020, 08:49
by tchobello
it's also happening on games played here...

you can watch a game of Hive and refresh F12 after any move.