You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem using geocoder.geocode for many queries (ca. 1200) in a for-loop: It throws an error ("Remote end closed connection without response") and stops with a Segmentation fault. I have a free trial account, so I made sure to have a pause of 2 seconds after each query. Also, the total number of made queries was below the daily limit. In total, I made three attempts and each time the error was thrown after a different number of processed requests.
Could you help me to find out why this could happen and how to avoid/solve it?
Thank you in advance!
Here is a code snippet to show how I made the requests:
fromopencage.geocoderimportOpenCageGeocodegeocoder=OpenCageGeocode('...') # my API keydf= ... # table with locationsforiindf.index:
query=df.loc[i,'Location']
location=geocoder.geocode(query)
sleep(2)
# check and save the result
We contacted the user the same hour via email. That's easier when exchanging URLs containing API keys. So far it looks like a network connection problem from computer to our servers (same country, pretty unexplainable) while all previous queries were fast, no errors and no timeouts.
Hello!
I have a problem using
geocoder.geocode
for many queries (ca. 1200) in a for-loop: It throws an error ("Remote end closed connection without response") and stops with aSegmentation fault
. I have a free trial account, so I made sure to have a pause of 2 seconds after each query. Also, the total number of made queries was below the daily limit. In total, I made three attempts and each time the error was thrown after a different number of processed requests.Could you help me to find out why this could happen and how to avoid/solve it?
Thank you in advance!
Here is a code snippet to show how I made the requests:
Here is the output after the error is thrown:
Edit: Typos
The text was updated successfully, but these errors were encountered: