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..


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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.