laptop and a wrench

Erro

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

Última Publicação: September 20, 2019 ArcGIS Runtime SDK
Número de ID do Erro BUG-000124688
EnviadoAugust 21, 2019
Última ModificaçãoJune 11, 2022
Aplica-se àArcGIS Runtime SDK
Versão encontrada100.5
Sistema OperacionalApple iOS
Versão do Sistema OperacionalN/A
StatusIn Product Plan

Solução Provisória

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\\\":\\\"\\\"}\"}]");

Etapas para Reproduzir

ID do Erro: BUG-000124688

Software:

  • ArcGIS Runtime SDK

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download