Skip to main content

Troubleshoot an ArcGIS integration

SymptomLikely causeWhat to check
Root loader rejects synchronous constructionLightweight descriptor passed to createDataSource()Use async createDataSource(), or import the loader from @loaders.gl/arcgis/bundled
No source matchesPortal item URL, proxy URL, or ambiguous service typeUse a REST service/layer URL and explicit core.type
Only some features appearRecord limit or query boundsInspect queryFeatures() completion/reason and bounds; raise maxFeatures deliberately or narrow the query
Invalid GeoJSON responseEsri JSON response or ArcGIS error envelopeKeep f: 'geojson'; inspect the original service response without logging credentials
401, 498 or 499Missing or expired tokenCheck the exact origin allowlist and the token callback
403 after refreshInsufficient access, restrictions, or wrong target serverCheck service sharing, credential privileges, restrictions and federation
HTTP 200 contains an ArcGIS errorError status is encoded in JSONToken callbacks renew on small JSON 498/499 envelopes; other errors remain errors. Check JSON content type and session refresh support
Initial request works, child resources failDifferent host, token scope or resource permissionsAuthorize only the explicitly trusted child origins and validate resource access
Browser fetch fails but a server request worksCORS, TLS, cookies, proxy or network accessFix server/proxy configuration; client code cannot override CORS
Features are displacedBounds or output data use an unexpected CRSInspect metadata and request a supported output spatial reference
Vector tiles look different from ArcGISApplication styling differsFull ArcGIS style, glyph, sprite and label evaluation is not implemented
LERC output is not an imageResponse contains numeric bands and a maskSelect a raster visualization and honor NoData
Scene metadata loads but rendering failsProfile/encoding/CRS mismatchConsult the I3S profile and renderer requirements; a metadata fetch is not a rendering test
Service exists in discovery but cannot loadCatalog enumeration exceeds adapter supportConsult the full inventory
Embedded demo failsRemote service unavailable or browser cannot access itCheck its visible error and service URL; examples do not silently substitute recorded data

Keep requests bounded​

Select fields, filter on the server, debounce viewport changes, and cancel obsolete work. Use a stable layer instance where possible. Avoid automatically retrying a request indefinitely; failures may represent missing privileges or unsupported operations rather than a temporary outage.

Report a reproducible issue​

Include the loaders.gl version, service type, operation, relevant advertised capabilities, browser, and a minimal request/result example with secrets removed. For Enterprise, include the server version and whether the service is federated. Prefer a small public or synthetic fixture that reproduces the response shape over a private endpoint that maintainers cannot access.