I have been using GeoPy with Nominatim perfectly for a couple of days. However, at random times I will receive an error when my app had previously been working a couple of seconds ago. I have implemented this code inside a flask app where you can input a city and get its longitude and latitude. Here is the error I randomly get when trying to turn an address into a longitude and latitude value:
GeocoderTimedOut: Service timed out
Then after I reload the app, it may begin to work again or it will stick like that for a couple more tries. I have no idea what is occurring here. Any help will be greatly appreciated. Cheers