Authentication Failed

  • Issue category: Semantic Segmentation
  • Device type & OS version: iOS the latest (not running on device yet)
  • Host machine & OS version: Mac OS Monterey
  • Issue Environment : Unity Mock
  • Xcode version: the latest (not running on device yet)
  • ARDK version: 2.0.0
  • Unity version: 2020.3.32

Bug reproduction steps:

  • “ArdkAuthConfig.asset” was placed in “Assets/Resources/ARDK”
  • No other “ArdkAuthConfig.asset” exists in “Assets/ARDKExamples” and in “Assets/LightshipHUB”
  • After clicking “Play”, got this as error:

#Niantic.ARDK.Internals.StartupSystems#: Attempted to authenticate ARDK Api Key, but got error: AuthHttp
UnityEngine.Debug:LogError (object)
Niantic.ARDK.Utilities.Logging.UnityARLogHandler:Error (string) (at Assets/ARDK/Utilities/Logging/LogHandler/UnityARLogHandler.cs:41)
Niantic.ARDK.Utilities.Logging.ARLog:_Error (string) (at Assets/ARDK/Utilities/Logging/ARLog.cs:198)
Niantic.ARDK.Internals.StartupSystems:SetAuthenticationParameters () (at Assets/ARDK/Internals/StartupSystems.cs:184)
Niantic.ARDK.Internals.StartupSystems:ManualStartup () (at Assets/ARDK/Internals/StartupSystems.cs:90)
Niantic.ARDK.Internals.StartupSystems:EditorStartup () (at Assets/ARDK/Internals/StartupSystems.cs:48)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadMethodAttributes () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:154)

Hello Yue,

The ‘AuthHttp’ is a network error code that indicates an issue with authenticating the server. I was able to reproduce this error when I attempted to test in Unity while not connected to the internet. Could you please verify that you are connected to the internet and have a stable connection?

Please let me know if this solved your issue. Thank you!