Answered

Why the SDK always gave 401 errors even though the API Key is right?

  • 25 November 2021
  • 4 replies
  • 339 views

Android SDK version: 10.4.2

iOS SDK version: 10.3.4

Few days ago since I posted this, the SDK worked fine, and then about two days ago, it suddenly stopped working for unknown reason. We didn't even change the implementation code. The Messenger screen always stuck with "Something wrong happened. Please try it again.". Pressing "Reload" didn't help as well.

 

When initializing the app, there was no error. After registering the user through an User ID and setting the FCM Token, also showed no errors. Once we got to the part to update the User or turning on the Messenger screen, then we received this error.

 

This error is the example during turning on the Messenger. Updating the user also showed similar error message.

ERROR - Tried to get conversations for display in the conversations list but there was a network error (401) - Request failed: unauthorized (401)

 

There's no way the API key used was wrong. If it worked previously without changes, why did it stop working and returned errors that indicate something might be wrong with the API Key?

icon

Best answer by Lisa B11 30 November 2021, 14:15

View original

4 replies

Hey @nanan​ 👋

 

Sorry to hear you are facing this issue, would you mind sending us a message through the Messenger and our support team can look into what's causing this for you 🙌

Got the same error. Please write description to provide more info

Hey @nanan​ ! Can you please install and test to see whether the issue happens in the sample app:

https://github.com/intercom/intercom-ios/p>

https://github.com/intercom/intercom-android/p>

 

Also, I would suggest you upgrading to the latest SDK version.

https://github.com/intercom/intercom-ios/

 

In this demo also I got 401 identity check error. Using my api key.

Reply