Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.86k stars 4k forks source link

Local setup gives certificate issue #239

Open gargankurg opened 1 year ago

gargankurg commented 1 year ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

I tried setting up this on my local machine and got the below issue, I was trying to run locally by ./start.ps1

Error: Error communicating with OpenAI: HTTPSConnectionPool(host='XXXX.openai.azure.com', port=443): Max retries exceeded with url: /openai/deployments/davinci/completions?api-version=2022-12-01 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:992)')))

It should work.

OS and Version?

Windows 11

azd version?

azd version 1.0.1 (commit e0cd1aca716fa5d08704beade7dcc734fe68f5f1)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

vhvb1989 commented 1 year ago

@gargankurg , are you getting this after you successfully ran azd up or azd provision locally?

Also, if you are using openAI keys, you need to update this file: https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/app/backend/app.py#L29

jinalbb02 commented 1 year ago

test I did all that was mentioned in the directions and also updated the app.py to use the open-api key. I still receive the below error -Error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'https'. (_ssl.c:1002)

pamelafox commented 1 year ago

@jinalbb02 There may be an issue with SSL on your device, can you try the suggestions here? https://stackoverflow.com/a/43855394/1347623 Those have worked for me for similar errors.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.