laptop and a wrench

Error

The RouteTask.setCredential method is not applying the credential to service requests.

Última publicación: September 20, 2019 ArcGIS Runtime SDK
Número de ID del error BUG-000124688
EnviadoAugust 21, 2019
Última modificaciónJune 11, 2022
Relacionado conArcGIS Runtime SDK
Versión encontrada100.5
Sistema operativoApple iOS
Versión de sistema operativoN/A
EstadoIn Product Plan

Solución alternativa

Use one of the following workarounds:

  • Set a UserCredential that is constructed from username and password like the following on the RouteTask.

UserCredential credential = new UserCredential(“your username”, “your password”);

  • Use the AuthenticationManager.CredentialCache.restoreFromJson method to apply token for the service https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/security/AuthenticationManager.CredentialCache.html#restoreFromJson(java.lang.String).

e.g.

AuthenticationManager.CredentialCache.restoreFromJson("[{\"serverContext\":\"route.arcgis.com/arcgis\",\"credential\":\"{\\\"password\\\":\\\"\\\",\\\"token\\\":{\\\"expires\\\":9223372036854775807,\\\"ssl\\\":true,\\\"token\\\":\\\" <token> \\\"},\\\"username\\\":\\\"\\\"}\"}]");

Pasos para reproducir

ID del error: BUG-000124688

Software:

  • ArcGIS Runtime SDK

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga