GIScience / openrouteservice-js

:pushpin: The JavaScript API to consume openrouteservice(s) painlessly!
https://openrouteservice.org
Apache License 2.0
199 stars 34 forks source link

issue: #81

Closed Tmodurr closed 2 months ago

Tmodurr commented 5 months ago

Configuration

Issue: When running Isochrone operations using the openrouteservice-js client, seeing intermittent issues with 'Operation was abortederrors. Error below.err.code` is 20.

Stack Trace. `'AbortError: The operation was aborted. at new DOMException (node:internal/per_context/domexception:53:5) at abortFetch (node:internal/deps/undici/undici:6374:21) at requestObject.signal.addEventListener.once (node:internal/deps/undici/undici:6308:9) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:731:20) at AbortSignal.dispatchEvent (node:internal/event_target:673:26) at abortSignal (node:internal/abort_controller:292:10) at AbortController.abort (node:internal/abort_controller:322:5) at AbortSignal.abort (node:internal/deps/undici/undici:5636:36) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:731:20) at AbortSignal.dispatchEvent (node:internal/event_target:673:26)'

Tmodurr commented 5 months ago

Mostly anecdotal but issues are increasingly spawned with larger ranges. For instance, 5 and 10km ranges have no issues, 50km has a few, and 75km has more failures.

TheGreatRefrigerator commented 4 months ago

Hi @Tmodurr, could be a timeout issue. For very large ranges you could try with less or only one location per requests.