Answered

Intercom Error: 'Uncaught TypeError: Cannot read properties of null (reading 'document')'

  • 2 August 2023
  • 2 replies
  • 162 views

I’m getting an error for identified users with `user_hash`, using the javascript API
The Intercom.booted is true, but I can’t show it even with Intercom(‘show’) from the console, other events like shutdown throws this error which breaks other parts of our code

 

is this a known issue? or is there a debug mode or something that can help me figure out the cause of the issue, it used to work just fine and it works perfectly for visitors

 

icon

Best answer by Jacob Cox 5 August 2023, 23:09

View original

2 replies

Userlevel 3
Badge

Hi @bourhaouta !

If you turn of Identity Verification for Web do you still run into issues? If not, then it’s most likely an issue with an incorrectly calculated user_hash. One thing to keep in mind is that if you use user_id’s as your unique User identifier, then you’ll want to make sure you’re creating the hash with the user_id value and NOT the email address. You can read up on Identity Verification in more detail here.

 

If the error doesn’t go away after turning that off then we can look in other directions for the issue. If this is the case, are there any other Intercom-related Errors popping up in the Console or Network tab?

@Jacob Cox I am also experiencing this issue. 

Once this issue occurs, no other intercom actions like events are being sent to intercom. This is causing us to miss events. 

Here’s my exact scenario. 

  • I do not utilize Identity verification
  • Intercom is loaded through the segment integration

Reply