question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

search returning empty objects

See original GitHub issue

Something have changed in either the code or the API since April/2016. A script that was working fantastically in April (and maybe in May) are only returning empty strings. Search queries [out:json];relation["type"="boundary"]["admin_level"="2"]["boundary"="administrative"](-34.0,-51.0,5.0,-28.0); and [out:json];relation["type"="boundary"]["admin_level"="2"]["boundary"="administrative"](-34.0,-51.0,5.0,-28.0);out body; and [out:json];relation["type"="boundary"]["admin_level"="2"]["boundary"="administrative"](-34.0,-51.0,5.0,-28.0);(._;>;);out body; all give empty response object back from the api. Running the last search in overpass-turbo returns correctly, the boundary relation for Brazil with all members. When the script was working, the first query sentence gave only the relation object of Brazil, which is what I need for further processing.

No changes have been done to the script since last successful run (except swapping between different alternatives of the searchString variable), though the PIP and the python version have been updated.

Below is a snippet from my log of the execution of the script:

2016/07/08 16:14:24: gpxupload INFO - Opened success.gpx/Upload/156VIRB0245.gpx 2016/07/08 16:14:24: gpxupload DEBUG - GPX File contains 1038 trackpoints with 1.423 km. 2016/07/08 16:14:24: gpxupload DEBUG - [out:json];relation[“type”=“boundary”][“admin_level”=“2”]“boundary”="administrative"😭._;>;);out body; 2016/07/08 16:14:25: requests.packages.urllib3.connectionpool INFO - Starting new HTTP connection (1): overpass-api.de 2016/07/08 16:14:39: requests.packages.urllib3.connectionpool DEBUG - “POST /api/interpreter HTTP/1.1” 400 461 2016/07/08 16:14:39: gpxupload ERROR - No search result returned

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mechy2k2000commented, Oct 7, 2016

Hey Im getting emtpy returns as well when I want json BUT When i do XML format I get expected results but in xml 😦

i.e. api = overpass.API() api.Get(“relation(11111111)”) # returns {“features”: [], “type”: “FeatureCollection”}

while api.Get(“relation(11111111)”, “xml”) # returns expected data. works with “json” as well

hope this helps

0reactions
mvexelcommented, Mar 22, 2022

Closing for lack of activity. Feel free to re-open if you’re still seeing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Query returning an empty object - node.js - Stack Overflow
I've tried to read from MongoDB database the list of equipments via mongoose and the result I got is an empty array, even...
Read more >
LWC controller returns empty objects
guys! I have a problem. Every time, when I'm trying to execute quick action i see this error-message: [e.opportunity is undefined]. Can somebody ......
Read more >
find( ) returning an empty object when called from a trigger
I tried executing the .find without any parameter but I'm still getting an empty object. const specificPost = await posts.find(); It works fine ......
Read more >
empty - Manual - PHP
Returns true if var does not exist or has a value that is empty or equal to zero, aka falsey, see conversion to...
Read more >
if search then return empty object instead of omit #2090 - GitHub
Problem if search child ( with related table) if there is no value then the whole JSON result should omit but I'm getting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found