laptop and a wrench

Error

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

Última publicación: June 12, 2019 ArcGIS API for JavaScript
Número de ID del error BUG-000118647
EnviadoDecember 6, 2018
Última modificaciónApril 2, 2025
Relacionado conArcGIS API for JavaScript
Versión encontrada4.10
Sistema operativoWindows OS
Versión de sistema operativoN/A
EstadoWill Not Be Addressed

Información adicional

This is how the API is designed to work.

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000118647

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga