Key is missing from snippet | Community
Skip to main content

Key is missing from snippet

  • February 27, 2022
  • 18 replies
  • 0 views

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?

18 replies

  • March 3, 2022
Hi Kipa!
 
Thanks for posting your question to the Community. Here are a few things to check to help troubleshoot:
 
  1. Configure your firewall to allow Web Widget to appear
  2. Configure components in Web Widget
  3. Determine if required sign-in is enabled for your Help Center, if so only authorized users will be able to access the Web Widget
 
If all of these have been checked off and you're still having an issue, I would try copying the script tag directly from admin settings as is. It looks like it may not be able to access MyKey if that is a variable you are using.
 
Hope this helps!
 
Best,
 
Erica - Dev Support

  • Author
  • March 6, 2022

Hi,

Thanks

1. My firewall has no restrictions at all.  
2. The chat web widget is already configured
3.  I didn't restrict the access using the security setting

When I am using the "script tag directly from admin settings as is" in a simple local HTML file everything is OK.
But when I put the same code in my XHTML file (in my web application) it doesn't and rais this "Key is missing from snippet" error message 

 

 

 


  • March 9, 2022
Hi Kipa,
 
Thanks for clarifying that. I did some testing on my end and wasn't able to replicate the issue. Let me go ahead and pull you into a ticket so I can get a better look at your code and we can figure out what's going on. Please keep an eye out for that email correspondence from me.
 
Best,
 
Erica - Dev Support

Tek
  • January 4, 2023

Hello, how did you solve this?


Tek
  • January 4, 2023

Having same issue and it would be greatly appreciated if you can help!


Alberto19
  • January 25, 2023

Same issue!!!


Hi Alberto,
 
Can you share the snippet you're including (go ahead and redact the key itself before sharing)?

Alberto19
  • February 6, 2023

Here is a reproduction environment 

https://stackblitz.com/edit/nuxt-starter-t3wwc5

Thanks!


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?

Alberto19
  • April 18, 2023

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


Alberto19
  • April 18, 2023


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

  • May 9, 2023

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?


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

  • May 10, 2023

Sure, go ahead!


James150
  • September 28, 2023

Did anyone resolve this? Same issue.


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

  • June 18, 2024

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