Skip to main content

loginIdentifiedUser / loginUnidentifiedUser works properly on app launch. The issue is when you carry out these actions in sequence -  loginIdentifiedUser, logOut and loginUnidentifiedUser, I get this UI error with console error 

errorCode: 0, errorMessage: The operation couldn’t be completed. (Network request succeeded but the response was ignored error 0.)


 

 

Since logging in an identified user, logging out, and then trying to log in an unidentified user leads to this error, the problem likely lies in session persistence or token handling. 

Ensure that you properly log out before switching users by calling Intercom.logout(); to fully clear the session. Additionally, check the network and API response, as the error suggests that the network request was successful but the response was ignored. 

Also a slight delay using setTimeout before calling loginUnidentifiedUser() might help.


Reply