Skip to content

Traveling Salesman Routing does not work due to wrong URL #347

@ray66

Description

@ray66

Action:

  • in window Directions from 1 Point Layer select an input layer that contains some points
  • set Traveling Salesman = Round Trip (or any other Traveling Salesman mode),
  • click on Start

Result:

QGIS-Version: 3.40.6-Bratislava
Qt-Version: 5.15.15
Python-Version: 3.13.3
GDAL-Version: 3.10.3
GEOS-Version: 3.13.1-CAPI-1.19.2
PROJ-Version: Rel. 9.6.0, March 15th, 2025
Algorithmus gestartet um: 2025-07-18T16:59:57
Algorithmus Directions from 1 Point-Layer startet…
Eingabeparameter:
{ 'CSV_COLUMN' : '', 'CSV_FACTOR' : None, 'EXPORT_ORDER' : False, 'EXTRA_INFO' : [], 'INPUT_AVOID_BORDERS' : None, 'INPUT_AVOID_COUNTRIES' : '', 'INPUT_AVOID_FEATURES' : [], 'INPUT_AVOID_POLYGONS' : None, 'INPUT_LAYER_FIELD' : '', 'INPUT_OPTIMIZE' : 0, 'INPUT_POINT_LAYER' : '/home/rainer/tmp/export.gpx|layername=waypoints', 'INPUT_PREFERENCE' : 0, 'INPUT_PROFILE' : 0, 'INPUT_PROVIDER' : 0, 'INPUT_SORTBY' : '', 'OUTPUT' : 'TEMPORARY_OUTPUT' }

Traceback (most recent call last):
File "/home/rainer/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ORStools/common/client.py", line 169, in request
response, content = self.nam.request(
~~~~~~~~~~~~~~~~^
self.url, method=requests_method, body=body, headers=self.headers, blocking=True
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/rainer/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ORStools/common/networkaccessmanager.py", line 278, in request
raise self.http_call_result.exception
ORStools.common.networkaccessmanager.RequestsException: Network error: Host api.openrouteservice.orgoptimization konnte nicht gefunden werden

Additional Information:

  • Routing works fine when Traveling Salesman is not selected.
  • Adding a / at he end of the Base URL fixes the issue

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions