marceloprates / prettymaps

A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.
GNU Affero General Public License v3.0
11.12k stars 522 forks source link

[SSL: CERTIFICATE_VERIFY_FAILED] #89

Open faq3pa opened 2 years ago

faq3pa commented 2 years ago

Both urllib3 & requests libraries are showing: [SSL: CERTIFICATE_VERIFY_FAILED]

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Max retries exceeded with url: /search?format=json&limit=1&dedupe=0&q=Pra%C3%A7a+Ferreira+do+Amaral%2C+Macau (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)')))

requests.exceptions.SSLError: HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Max retries exceeded with url: /search?format=json&limit=1&dedupe=0&q=Pra%C3%A7a+Ferreira+do+Amaral%2C+Macau (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)')))

TakiGuan commented 2 years ago

This is usually caused by your company firewall configuration. If you can't get help from your firewall team you need to manually change endpoint URL from https to http. It should in setting.py this file.