laptop and a wrench

不具合

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

ArcGIS Maps SDK for JavaScript
不具合 ID 番号 BUG-000168429
送信されましたJune 18, 2024
最終更新日December 6, 2024
適用対象ArcGIS Maps SDK for JavaScript
見つかったバージョン4.29
オペレーティング システムWindows OS
オペレーティング システムのバージョンN/A
ステータスAs Designed

参考情報

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.

対処法

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

再現の手順

不具合 ID: BUG-000168429

ソフトウェア:

  • ArcGIS Maps SDK for JavaScript

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動