Closed atlefren closed 8 years ago
Do you always receive an empty response or only sometimes? Which Python version are you using? When I execute the request (2.7 and 3.4) I receive a TimeoutError after a while.
I set the timeout parameter quite high (600), using Python 2.7.6 (Ubuntu trusty)
I haven't tried all that many times, but it happened tree or four times in a row, then I started investigating and was able to make this fix (using a couple more requests), so approx 5-6 times in a row at least. Strange if you are not able to reproduce it.
The timeout value was the key, with 600 I receive an empty response. Thank you for the pull request!
Great, thanks for a great library!
I used this project to send the following query:
But after a while I got an empty response. After digging a bit more I found that the overpass API returned a response akin to the one described here: https://github.com/drolbr/Overpass-API/issues/104
Strangely enough the response had a 200 OK status code, so this lib continued to return the empty elements array, leaving me none the wiser.
This PR tries to remedy this, by raising a ServerRuntimeError exception when this happens.