openrouteservice-js icon indicating copy to clipboard operation
openrouteservice-js copied to clipboard

issue:

Open Tmodurr opened this issue 1 year ago • 2 comments

Configuration

  • ORS Client: "openrouteservice-js": "^0.3.2"
  • Node.js: v18.8.0.
  • Target geography: United States, Oregon
  • Parameters passed to Openrouteservice.Isochrones.calculate below (5 point geometries passed in locations image

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 avatar Apr 15 '24 19:04 Tmodurr

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.

Tmodurr avatar Apr 15 '24 19:04 Tmodurr

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

TheGreatRefrigerator avatar May 29 '24 14:05 TheGreatRefrigerator