openai / web-crawl-q-and-a-example

Learn how to crawl your website and build a Q/A bot with the OpenAI API
https://platform.openai.com/docs/tutorials/web-qa-embeddings
271 stars 181 forks source link

urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] #16

Open LoetLuemmel opened 1 day ago

LoetLuemmel commented 1 day ago

I don't get any results different from the following output, regardless which URL or Domain I try to scan:

https://openai.com/ <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>

Any suggestion to get this fixed?

LoetLuemmel commented 1 day ago

Seems to be Mac specific and here is the fix:

https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org

This doesn't work in your finder, you need to use the terminal instead.