question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

force POST for featureLayer as GET is too long and fails

See original GitHub issue
  • Version of Leaflet (L.version): 1.0.2
  • Version of esri Leaflet (L.esri.VERSION): 2.0.6

Steps to reproduce the error: Create large query like: TREEID in (‘12313’, ‘3213’…)

What happens is that services are returning 404 not found. It works fine if i use POST in ArcGIS web query builder but fails if i try to use GET.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mladenpcommented, Aug 8, 2017

Ok, so i concluded that error is in fact somewhere on my ArcGIS server, as it shouldn’t fail for those GET queries (< 2000 chars). Demo ArcGIS services in that jsfiddle helped me figure that out. So now i use POST requests and CORS and it works fine. Thanks.

0reactions
mladenpcommented, Oct 27, 2017

I was having that issue with ArcGIS verison: 10.22 but i think the problem is in server max url length.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ArcGIS API 4.17 client side feature layer rendering issues
Solved: I am using a feature layer with client side features. I am using applyEdits to modify the client side features.
Read more >
FeatureLayer | API Reference - ArcGIS Developers
A FeatureLayer is a single layer that can be created from a Map Service or Feature ... Very large datasets may require potentially...
Read more >
ArcGIS Server Featurelayer: Error on adding features via ...
I tried logging all SQL-statements by PostgreSQL to find out what the problem is. Unfortunately PostgreSQL did only log the INSERT-statement ...
Read more >
Working with Your Data Using the ArcGIS API for ... - YouTube
Explore the capabilities of the feature layer that directly connects to your data. In this session you will learn how to create, display, ......
Read more >
get feature layer on button click - arcgis js api - Stack Overflow
As I understood, you want to add a layer on button click. Below is the code for this: <!DOCTYPE html> <html> <head> <meta ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found