contextily icon indicating copy to clipboard operation
contextily copied to clipboard

ConnectTimeout when adding as basemap

Open BastienGauthier opened this issue 1 year ago • 3 comments

Hello,

I work with geopandas 1.0.1 and contextily 1.6.0. I tried to add a basemap using contextily, but with no success, even when switching the source via cx.providers. Note that I usually do this with folium or plotly without issue. Nevertheless, I am on my professional computer, so a firewall issue would not surprise me.

The depicted error after ax.add_basemap(...) :

ConnectTimeout: HTTPSConnectionPool(host='tile.openstreetmap.org', port=443): Max retries exceeded with url: /9/257/175.png (Caused by ConnectTimeoutError(, 'Connection to tile.openstreetmap.org timed out. (connect timeout=None)'))

Regards,

BastienGauthier avatar Aug 02 '24 16:08 BastienGauthier

Is it a recurring issue? It may as well be a temporary issue caused by some hiccups on the tile server.

martinfleis avatar Aug 02 '24 16:08 martinfleis

I retried today with the same error : it seems like a recurring issue indeed.

BastienGauthier avatar Aug 06 '24 14:08 BastienGauthier

Can you share a reproducible example?

martinfleis avatar Aug 06 '24 14:08 martinfleis