Skip to content

OverpassGatewayTimeout: Server load too high #132

@mjaniec2013

Description

@mjaniec2013

The error is raised with any code I've tested, including the basic example,

ERROR:

Traceback (most recent call last):
  File "<input>", line 6, in <module>
  File "D:\Python\Python314\Lib\site-packages\overpy\__init__.py", line 189, in query
    raise current_exception
overpy.exception.OverpassGatewayTimeout: Server load too high

Code used:

import overpy

api = overpy.Overpass()

# fetch all ways and nodes
result = api.query("""
    way(50.746,7.154,50.748,7.157) ["highway"];
    (._;>;);
    out body;
    """)

for way in result.ways:
    print("Name: %s" % way.tags.get("name", "n/a"))
    print("  Highway: %s" % way.tags.get("highway", "n/a"))
    print("  Nodes:")
    for node in way.nodes:
        print("    Lat: %f, Lon: %f" % (node.lat, node.lon))

Windows 11, Python 3.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions