Method webWidget:on.open does not exist.
Con risposta
Data ultimo post: 13 set 2022
Although the messaging widget seems to work correctly, we get this error from many users in our error reports in Sentry. Any idea what may cause this error? We switched from classic to messaging about a month ago and we have updated the embed code.
Error: Method webWidget:on.open does not exist. Check out the Developer API docs to make sure you're implementing it correctly, https://developer.zendesk.com/embeddables/docs/zendesk-sdk-for-web/getting_started
1
14
14 commenti
Dr. Man Ha
Hi,
I try to customize Zendesk Chat Widget using the below command in REACT:
setColorTheme(themeColor, launcherColor, buttonColor) {
window.zE('webWidget', 'updateSettings', {
webWidget: {
color: {
theme: themeColor,
launcher: launcherColor,
button: buttonColor
}
}
});
}
console.log report that:
Error:
Method webWidget.updateSettings does not exist.
Check out the Developer API docs to make sure you're implementing it correctly, https://developer.zendesk.com/embeddables/docs/zendesk-sdk-
What can I modify this command?
Thank you very much
Man
0
Tipene Hughes
I've done some testing on my end and haven't been able to replicate what you're seeing. With that said, the comments above indicate that this error may be generated by a third-party service. Does your environment match with those described above? i.e are the errors being captured via log rocket, sentry, etc.?
0
Adrian Labastida
May 2024 and this still seems to be a thing, only using zE('messenger', 'show'); or zE('messenger', 'hide'); in codebase
0
Andrej Kovčić
I already contacted them and they confirmed the issue on their side:
1
Vassilis Terzopoulos
That makes sense. Just sent a message to LogRocket support. Thanks Andrej!
0
Andrej Kovčić
I see the same error message, but it's coming from LogRocket code which has Zendesk integration. Seems they still use the old api to detect when widget is opened.
1
Vassilis Terzopoulos
Can we get some feedback on this issue? Is it reported to the Zendesk dev team? Is there a fix planned for release soon?
Thank you
0
Dmitry Motovilov
Brett Bowser
Hi, thanks for your reply.
Yep i'm aware that these methods look like they're from a legacy codebase. However, we use the new api, as is described in the link you provided.
Namely, this script is injected:
0
Vassilis Terzopoulos
We keep having them too... many of them in our Sentry logs!
I am attaching a screenshot from my console just in case you may find it useful.
Thanks.
1
Matt K.
Hi Brett,
I'm experiencing the same problem after upgrading from classic to Messenger. Have scoured our codebase for any remaining calls to `webWidget`, and found none. Moreover, we don't have any sort of event handler wired up for `'messenger:on' 'open'`. It really seems as though this is being called somewhere within the Messenger SDK code on initialization and being caught by Sentry, which then alerts our users to the bug.
Any help here would be greatly appreciated!
Matt
0
Accedi per lasciare un commento.