laptop and a wrench

不具合

Web Map Service (WMS) GetMap requests are sent as POST with an invalid encoded body when the GetMap requests' URL exceeds the configured maxUrlLength of @arcgis/core/config.

最後に公開された状態: May 8, 2022 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000147618
送信されましたMarch 15, 2022
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン4.22
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスWill Not Be Addressed

参考情報

The Web Map Service (WMS) spec never standardized XML encoding for the post body, so GetMap requests as XML is not supported when sent as POST since the XML may be different for each server. Regarding always sending GetMap requests as GET, we decided against that as well, since we do not want to break existing layers where the server responds correctly. As an alternative, this request interceptor always makes a GET request: esriConfig.request.interceptors.push({ urls: "https://host/path", async before(params) { if (params.requestOptions.responseType === "image") { const url = new URL(params.url); url.search = new URLSearchParams([ ...Array.from(url.searchParams.entries()), ...Object.entries(params.requestOptions.query || {}) ]).toString(); const img = new Image() img.crossOrigin = "anonymous"; img.src = url.href; await img.decode() return img; } } });

再現の手順

不具合 ID: BUG-000147618

ソフトウェア:

  • ArcGIS API for JavaScript

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

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

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

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

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

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

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