microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.55k stars 2.4k forks source link

Issue while running prepdocs.py script #598

Open VikashLalit opened 7 months ago

VikashLalit commented 7 months ago

SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)

0%| | 0/1 [00:01<?, ?it/s]

Traceback (most recent call last):

File "C:\Users\vk\git\sample-app-aoai-chatGPT-main\scripts\prepdocs.py", line 233, in

create_and_populate_index(

File "C:\Users\vk\git\sample-app-aoai-chatGPT-main\scripts\prepdocs.py", line 137, in create_and_populate_index

VikashLalit commented 7 months ago

@sarah-widder Hi , Can you please suggest for above mentioned issue . Its coming while running prepdocs.py

Neil-Schneider commented 6 months ago

Are you behind a corporate firewall? You might need to add your corporate CA cert to your Python CA file.

VikashLalit commented 6 months ago

@Neil-Schneider yes i am under corporate firewall and app is working fine in my local machine. Its just that after deploying it to azure chat is not working and m getting above error in logs.

I have already created vnet and configured that in my app service resource, also enabled access to this web app from selected networks..