Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

Using WayQuery raises exception #176

Description

@StarvingMarvin

I've literally just copy-pasted WayQuery example from the README and got the following exception:

---------------------------------------------------------------------------
OverpassSyntaxError                       Traceback (most recent call last)
Cell In[8], line 1
----> 1 v = api.get(wq)

File .../overpass/api.py:104, in API.get(self, query, responseformat, verbosity, build, date)
    101     logging.getLogger().info(query)
    103 # Get the response from Overpass
--> 104 r = self._get_from_overpass(full_query)
    105 content_type = r.headers.get("content-type")
    107 if self.debug:

File .../overpass/api.py:279, in API._get_from_overpass(self, query)
    277 if self._status != 200:
    278     if self._status == 400:
--> 279         raise OverpassSyntaxError(query)
    280     elif self._status == 429:
    281         raise MultipleRequestsError()

OverpassSyntaxError: [out:json];(way[name="Highway 51"]);(._;>;);out body;

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions