Skip to content

QuickOSM should check the timeout value against its timeout #459

Closed

Description

@Gustry

From the settings saved in QGIS, QuickOSM should check the value saved and compare it to its own timeout value.

This value can be overriden by the API call per request also.

Activity

  1. added
    bug
    on Mar 27, 2023
  2. self-assigned this
    on Mar 27, 2023
  3. BenStonebreaker commented on Mar 28, 2023

    @BenStonebreaker

    QGIS-Version: 3.22.14-Białowieża
    QGIS-Codeversion: 4cde646c
    Qt-Version: 5.15.3
    Python-Version: 3.9.5
    GDAL-Version: 3.6.1
    GEOS-Version: 3.11.1-CAPI-1.17.1
    PROJ-Version: Rel. 9.1.1, December 1st, 2022
    PDAL-Version: 2.4.3 (git-version: f8d673)
    Algorithmus beginnt bei: 2023-03-28T09:58:07
    Algorithmus Laden Sie OSM Daten aus einer Abfrage in einem Bereich herunter startet…
    Eingabeparameter:
    { 'AREA' : 'Bad Rappenau', 'FILE' : 'TEMPORARY_OUTPUT', 'KEY' : 'highway', 'SERVER' : 'https://lz4.overpass-api.de/api/interpreter', 'TIMEOUT' : 25, 'VALUE' : 'public' }

    Building the query.
    All OSM objects with the key 'highway'='public' in Bad Rappenau are going to be downloaded.
    Ergebnisse: {'OUTPUT_OQL_QUERY': '[out:xml] [timeout:25];\n area(3600410526) -> .area_0;\n(\n node"highway"="public";\n way"highway"="public";\n relation"highway"="public";\n);\n(.;>;);\nout body;', 'OUTPUT_URL': 'https://lz4.overpass-api.de/api/interpreter?data=[out:xml] [timeout:25];%0A area(3600410526) -%3E .area_0;%0A(%0A node%22highway%22%3D%22public%22;%0A way%22highway%22%3D%22public%22;%0A relation%22highway%22%3D%22public%22;%0A);%0A(.;%3E;);%0Aout body;&info=QgisQuickOSMPlugin'}
    Downloading data and OSM file.
    Traceback (most recent call last):
    File "C:\Users/r/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\quick_osm_processing\quickosm_process.py", line 351, in processAlgorithm
    return self.process_road(context, url)
    File "C:\Users//AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\quick_osm_processing\quickosm_process.py", line 138, in process_road
    osm_file = connexion_overpass_api.run()
    File "C:\Users//AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\core\api\connexion_oapi.py", line 85, in run
    raise NetWorkErrorException('Overpass API', ', '.join(self.errors))
    QuickOSM.core.exceptions.NetWorkErrorException: Overpass API : Download gescheitert: Das Zeitlimit für die Verbindung wurde überschritten

    Execution failed after 42.40 Sekunden

    Lade Ergebnis Layer
    Algorithmus 'Laden Sie OSM Daten aus einer Abfrage in einem Bereich herunter' beendet

  4. Gustry commented on Mar 28, 2023

    @Gustry
    CollaboratorAuthor

    @BenStonebreaker and others : it seems you can try to switch to z.overpass-api.de instead of lz4.overpass-api.de, according to this answer on GIS-Se

  5. pinned this issue on Mar 28, 2023
  6. mmd-osm commented on Mar 28, 2023

    @mmd-osm

    Please use overpass-api.de instead of a single hostname like z.overpass-api.de (which will go out of service soon, and is no longer included in the overpass-api.de DNS record).

  7. Gustry commented on Mar 28, 2023

    @Gustry
    CollaboratorAuthor

    Thanks @mmd-osm I was thinking the same this afternoon about a few tickets coming on GitHub. What is the best way to see this kind of updates ? I was looking on https://wiki.openstreetmap.org/wiki/Overpass_API/status this afternoon to see some news.

    I was proposing z.overpass-api.de because it's second on in the pre-configured list : https://github.com/3liz/QuickOSM/blob/master/QuickOSM/definitions/overpass.py#L26

    I will remove these 2 and use a single one tomorrow.

  8. Gustry commented on Mar 28, 2023

    @Gustry
    CollaboratorAuthor

    A previous PR changing the list of server : #173

  9. Gustry commented on Mar 29, 2023

    @Gustry
    CollaboratorAuthor

    Done 9b8b58d

    Please upgrade to 2.2.1

  10. mmd-osm commented on Apr 12, 2023

    @mmd-osm
  11. Gustry commented on Apr 13, 2023

    @Gustry
    CollaboratorAuthor

    Thanks @mmd-osm for raising the issue on the Overpass API side. I saw that the DNS will be updated soon to forward request to new servers.
    From a QGIS side, we can only encourage people to upgrade their plugins.

  12. mmd-osm commented on Apr 14, 2023

    @mmd-osm

    Meanwhile the old hostnames point to the two new servers, including proper set up of server certificates. At this point I would expect that users of older QuickOSM releases could continue using the tool as before. Avoiding hard coded server names is still recommend to avoid similar issues in the future.

  13. deleted a comment from ShahinBa on Oct 13, 2023
  14. removed their assignment
    on Jul 18, 2025
  15. Gustry commented on Jul 8, 2026

    @Gustry
    CollaboratorAuthor

    I think I can close this ticket.

    There is still #402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions