Hello, I have used geopy module for my school project.

Today, I run my code but an error occurred

error was:

geopy.exc.GeocoderServiceError: HTTP Error 500: Internal Server Error

it occurred at

geolocator = Nominatim()
location = geolocator.reverse(pr, timeout = 20)

before a few days, my code worked well, so I could get addresses..

what's the problem and how can I fix it???

Please help me..

Thank you..

2 Years
Discussion Span
Last Post by cereal


geopy.exc.GeocoderServiceError: HTTP Error 500: Internal Server Error

from documentation of geopy you can read the meaning of this exception:

There was an exception caused when calling the remote geocoding service, and no more specific exception could be raised by geopy. When calling geocoders’ geocode or reverse methods, this is the most general exception that can be raised, and any non-geopy exception will be caught and turned into this. The exception’s message will be that of the original exception.

HTTP Error 500 is a generic server error: http://httpstatus.es/500

So, it seems the problem is generated by the provider, i.e. by the Nominatim server.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.