400 error. Response body was null, failed to auth user. | Community
Skip to main content

400 error. Response body was null, failed to auth user.

  • November 2, 2021
  • 2 replies
  • 0 views

Mykola12

I am using a trial version of the support Zendesk registered for email A. I have an "anonymous" option selected as the authentication method (settings -> mobile SDK -> setup). For anonymous identity, I always specify user's name & email inside the app during user identification (Zendesk.INSTANCE.setIdentity(...)).
Then in a mobile app after initialization of the SDK and specifying the user with email B, I was able to successfully create tickets, add attachments. After this, I was able to preview these tickets in a dashboard. 

The problem is when I switch to user registered with email A (the same as trial Zendesk dashboard organization/account owner) I am not able to create a ticket. Instead I am receiving error 400 with message

"Response body was null, failed to auth user."

D/ZendeskIdentityStorage: Loading Anonymous identity
D/ZendeskIdentityStorage: Fetching UUID from preferences store
D/ZendeskIdentityStorage: Loading Anonymous identity
D/ZendeskIdentityStorage: Fetching UUID from preferences store
D/ZendeskIdentityStorage: Loading Anonymous identity
D/ZendeskIdentityStorage: Fetching UUID from preferences store
D/ZendeskIdentityStorage: Loading Anonymous identity
D/ZendeskIdentityStorage: Fetching UUID from preferences store
D/ZendeskSettingsProvider: Successfully retrieved Settings
D/ZendeskIdentityStorage: Loading Anonymous identity
D/ZendeskIdentityStorage: Fetching UUID from preferences store
D/ZendeskIdentityStorage: Loading Anonymous identity
D/ZendeskIdentityStorage: Fetching UUID from preferences store
W/ZendeskIdentityManager: There is no stored access token, have you initialised an identity and requested an access token?
D/ZendeskAccessIntercepto: Access token is required, intercepting.
D/ZendeskAccessIntercepto: Anonymous Identity found. Requesting and storing auth token.
D/ZendeskAccessProvider: Requesting an access token for anonymous identity.
D/ZendeskIdentityStorage: Fetching UUID from preferences store
code=400, message=Response body was null, failed to auth user.





2 replies

Eric27
  • November 2, 2021
Hey Mykola,

Am I understanding you correctly that "email A" is an admin / agent of your Zendesk account?

You shouldn't use your admin e-mail address while testing your app. Otherwise you'll get this error.