Key is missing from snippet



Posted Feb 27, 2022

Hi I added this code to my web site html body (end of body)
    <!-- Start of  Zendesk Widget script -->
    <script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=MyKey"> </script>
    <!-- End of  Zendesk Widget script -->
the chat is not been displayed and i keep getting error

Key is missing from snippet vendors~rollbar.noconflict.umd.min.js:1:58963
    n https://static.zdassets.com/ekr/vendors~rollbar.noconflict.umd.min.js:1
    oe http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    c http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    (Async: setTimeout handler)
    _immediateFn http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    c http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    l http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    s http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    d http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    re http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    (Async: promise callback)
    re http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    d http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    u http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    re http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    oe http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    <anonymous> http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    c http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    (Async: setTimeout handler)
    _immediateFn http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    c http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    l http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    f http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    c http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    (Async: setTimeout handler)
    _immediateFn http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    c http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    l http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    f http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    c http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    (Async: setTimeout handler)
    _immediateFn http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    c http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    then http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    <anonymous> http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    <anonymous> http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    o http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    <anonymous> http://static.zdassets.com/ekr/snippet.js?key=MyKey:1
    <anonymous> http://static.zdassets.com/ekr/snippet.js?key=MyKey:1

How Can I fix it? what did I do wrong?


0

18

18 comments

This happened to me because the `id='ze-snippet'` property was missing. It was fixed after adding it to the `<script>`element. 

0


Hi James,
 
I've created a ticket to work with you on this.
 

0


Did anyone resolve this? Same issue.

0


Sure, go ahead!

0


Hey Lily, 
 
You mind if I pull this into a ticket so you can share some more details? 
 
Thanks!

0


Hi, I am having the same problem as Alberto - my snippet works on production but doesn't work on my dev site.  The key is the same. What is going on?

0


Hey Alberto,
 
I've created a ticket to work with you on this.

0


0


The key is correct, we have ussing this in our Production environment in others webs :(

0


Hi Alberto,
 
Thanks for the info.  In your sample, the widget is trying to launch but it cannot because the supplied key itself is invalid.  Can you copy the exact key string from the launch snippet in your admin settings?

1


Sign in to leave a comment.

Didn't find what you're looking for?

New post