Select to view content in your preferred language

Get request returns a 404 when a long request URI is queried

1043
1
06-13-2022 03:21 PM
rp2
by
New Contributor

Hi,

We are trying to query the Esri API through the following endpoint pattern: /arcgis/rest/services/<feature_layer>/FeatureServer/<layer_no>/Query

Our issue is that when we are trying to query Esri with a large number of objectIds (say about 500), we are getting a 404 No file or directory found error. The same result occurs in both the get request and through the browser itself. After some investigation, we noticed that when the URL reaches 2160 characters, the request fails with this error. Any request URI smaller than 2160 characters works perfectly fine.

Is there any sort of account level parameter where we can increase this character limit? Also, if anyone knows an available workaround that will allow large number of objectIds to be queried would be really helpful.

 

Thanks in advance for your time and help.

0 Kudos
1 Reply