laptop and a wrench

Erro

TypeError: Unable to read properties of undefined (reading 'forEach') when accessing features from an interceptor's query result array.

ArcGIS Maps SDK for JavaScript
Número de ID do Erro BUG-000168429
EnviadoJune 18, 2024
Última ModificaçãoDecember 6, 2024
Aplica-se àArcGIS Maps SDK for JavaScript
Versão encontrada4.29
Sistema OperacionalWindows OS
Versão do Sistema OperacionalN/A
StatusAs Designed

Informações Adicionais

The interceptor after must handle all types of results returned by /query. In this case there is a query call to get the feature count, so there are no features in the results, as expected. The solution is to first check if there are features in the response.

Solução Provisória

Verify if an array is returned from the interceptor's query result prior to accessing each feature from the response.

Etapas para Reproduzir

ID do Erro: BUG-000168429

Software:

  • ArcGIS Maps SDK for JavaScript

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