2
2
Fork
You've already forked overpass-api-python-wrapper
2

Using WayQuery raises exception #176

Closed
opened 2025年03月24日 15:12:16 +01:00 by StarvingMarvin · 1 comment
StarvingMarvin commented 2025年03月24日 15:12:16 +01:00 (Migrated from github.com)
Copy link

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;
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; ```

Can you share a minimal reproducer plus stack trace and version info (overpass package version, Python version)? We can target a fix in 0.8 once we can reproduce.

Can you share a minimal reproducer plus stack trace and version info (overpass package version, Python version)? We can target a fix in 0.8 once we can reproduce.
Sign in to join this conversation.
No Branch/Tag specified
main
tutorial/d1-httpx-nvim
0.8.x
dev-contributor-tooling
1.0-dev
dev
feature/api-modernization
maintenance/base-0.8
maintenance/geojson-fixtures
archive/async-models
maintenance/endpoint-guard
maintenance/live-query-tool
maintenance/modernize-plan
archive/dev-prebaseline-20260502
archive/modernize
archive/chore-tests
chore/poetry
archive/readme
v0.8.2
v0.8.1
v0.8.0
v0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.7
0.5.6
0.5.5
0.4.0
0.1.0
0.0.2
0.0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mvexel/overpass-api-python-wrapper#176
Reference in a new issue
mvexel/overpass-api-python-wrapper
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?