Contextily printing on VScode - 403 error for tiles

Hi all,

I have not used my notebook for sometime.

Ran it today, and was greeted by this error. Curious to know if anyone has gotten this before.

ctx.add_basemap(ax, source=ctx.providers.OpenStreetMap.Mapnik, zoom=12)

It was working fine previously.

Thanks in advance!

A 403 error means you’re violating some aspect of the tile usage policy. By far the most likely violation for a personal project is that you’re sending a generic user-agent string with the request, rather than one that identifies your project.

some blocking is automated - I am not familiar with exact pattern, but maybe some tile usage policy violation tripped some automatic system

or something changed which requests you make

or you used it last time before stricter enforcement of rules was introduced