laptop and a wrench

Bug

Query parameters are not added to the body when sending a POST using esriRequest.

Zuletzt veröffentlicht: June 12, 2019 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000118647
EingereichtDecember 6, 2018
Zuletzt geändertApril 2, 2025
Gilt fürArcGIS API for JavaScript
Gefunden in Version4.10
BetriebssystemWindows OS
BetriebssystemversionN/A
StatusWill Not Be Addressed

Zusätzliche Informationen

This is how the API is designed to work.

Workaround

Use another HTTP request interface like the Fetch API(https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).The following code works:fetch(proxy + portalUrl + '/sharing/rest/content/features/generate', {     method: 'post',     body: formdata}).then(function(response){     return response.json();}).then(function(response){     if(!response){        if(response.error){            errorHandler(response.error);            return;        }     }     console.log(response);});

Schritte zur Reproduzierung

Bug-ID: BUG-000118647

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln