This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[Nominatim]: The underlying connection was closed

0

I have been using nominatim for reverse geo-coding purpose. I send so many asynchronous requests to retrieve geo locations based on latitude and longitude.

I am using nominatim version 2.4.

And because of that I receive an error saying:

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. at System.Net.HttpWebRequest.GetResponse()

So I would like to know that whether is there any solution to get rid of it ? Is there any configuration for maximum connection request ?

asked 10 Sep '15, 05:46

SpiderCode's gravatar image

SpiderCode
11112
accept rate: 0%

are you running your own instance of Nominatim ? Or are you using nominatim.openstreetmap.org ? In that latter case, you have to be aware that there is a limit on the number of request you can make. It is not meant for commercial purposes, and you should install your own instance of Nominatim in that case.

(10 Sep '15, 14:53) escada

I am running my own Nominatim instance

(10 Sep '15, 14:56) SpiderCode

@escada : Is there any possible way to do this ?

(14 Sep '15, 07:31) SpiderCode

Sorry, I have never installed Nominatim myself. I was just asking additional questions because it was not clear to me whether you were running your own instance or not

(14 Sep '15, 08:03) escada

Source code available on GitHub .