azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

Local setup gives certificate issue

Open gargankurg opened this issue 1 year ago • 2 comments

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.

gargankurg avatar May 27 '23 19:05 gargankurg

@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

vhvb1989 avatar May 30 '23 18:05 vhvb1989

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)

jinalbb02 avatar Jul 04 '23 12:07 jinalbb02

@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.

pamelafox avatar Jul 27 '23 12:07 pamelafox

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.

github-actions[bot] avatar Dec 23 '23 01:12 github-actions[bot]