Esri/esri-leaflet

Dynamic Map Layer layerDefs force POST

EnasDiabYouxel opened this issue · 4 comments

Describe the bug

When sending a query string that is around 4 KB size (4000 characters), The '/export' API get called and return status 200 OK, but it doesn't return the image generated
is there a limitation on the call & what can I do ?
if I made it a POST call not GET, this will fix the issue? and how can I make it a POST call?

Reproduction

https://jsbin.com/tiqomapaju/6/edit?html,output

Logs

No response

System Info

"leaflet": "^1.9.3",
"esri-leaflet": "^3.0.10",

Additional Information

No response

I found that if I'm using f:'json' when getting the image the call method converts to POST if it is large and the server responds with the object contains the href image path when call the image link to display the server respond with noting, although when taking the link and open it in the browser it displays the image

I found that the server firewall blocked the request

@EnasDiabYouxel Are you saying this was an issue with your firewall and not with Esri Leaflet? If so we'll close this issue. Thanks!

Yes , It was a problem with the firewall of the provider not with Esri Leaflet, Thank you , Please close the issue.