osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Error NoSegment using node_osrm on Windows

Open brunno-14 opened this issue 2 years ago • 2 comments

Issue

I'm using node_osrm on Windows and I'm facing an issue when trying to use files generated on a Linux machine, I'm getting the following error: [Error: NoSegment]. Note that if I point node_osrm to files generated on Windows, it works without any issues.

Steps to Reproduce

  • Install node_osrm on Windows machine
  • Generate OSRM files on a Linux machine
  • Copy the OSRM files to the Windows machine
  • Update the file paths in the node_osrm code to point to the copied Linux-generated files
  • Run the node_osrm code

Expected Behavior

  • I expect node_osrm to be able to use the Linux-generated OSRM files without any errors.

Actual Behavior

  • When I run node_osrm with the Linux-generated files, I'm getting the error [Error: NoSegment].

Additional Information

  • node_osrm version 5.27.1
  • I've confirmed that the Linux-generated files are valid and can be used with node_osrm on a Linux machine
  • I've tried using both absolute and relative file paths to the Linux-generated files, but the error persists
  • I've also tried generating the OSRM files on a different Linux machine, but the error still occurs when using them with node_osrm on Windows.

brunno-14 avatar Apr 25 '23 17:04 brunno-14