laptop and a wrench

Bug

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

Last Published: June 12, 2019 ArcGIS API for JavaScript
Bug ID Number BUG-000118647
SubmittedDecember 6, 2018
Last ModifiedApril 2, 2025
Applies toArcGIS API for JavaScript
Version found4.10
Operating SystemWindows OS
Operating System VersionN/A
StatusWill Not Be Addressed

Additional Information

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);});

Steps to Reproduce

Bug ID: BUG-000118647

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options