Method webWidget:on.open does not exist.

Répondu

11 Commentaires

  • Dainne Lucena
    Zendesk Customer Care

    Hi Vassilis Terzopoulos

    To look into this further we would need to grab a couple of details from your implementation so I went ahead & created a ticket on your behalf so we can work on this. Please keep an eye out for our email!

    0
  • Dmitry Motovilov

    Dainne Lucena

    Hi! I would love to know about this as well. We observe the same warning on production. If you need any details / assistance, feel free to reach.

    0
  • Dmitry Motovilov

    Dainne Lucena 

    Hi. Any motion on this?

    0
  • Brett Bowser
    Zendesk Community Manager
    Hey Dmitry,

    I did some digging and it looks like the above issue was related to some old widget code being used. I would recommend checking your website and making sure you're using the new widget code as mentioned here: https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/web/sdk_api_reference/
     
    You can see in the above documentation that it uses zE('messenger' instead of the classic one zE('webWidget.

    Hope this helps point you in the right direction!
    0
  • 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
  • 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
  • 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: 

     
    and initialized with
     
    ```
    window?.zE?.('messenger', 'loginUser', (callback) => {
    callback(response.data.token);
    });
    ```
    0
  • 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
  • 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

    That makes sense. Just sent a message to LogRocket support. Thanks Andrej!

     
    0
  • Andrej Kovčić

    I already contacted them and they confirmed the issue on their side:

     

    1

Vous devez vous connecter pour laisser un commentaire.

Réalisé par Zendesk