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

Cannot Run App Locally Incomplete environment configuration. These variables are set: AZURE_TENANT_ID

Open rahulsnc3it opened this issue 2 years ago • 3 comments

image

rahulsnc3it avatar Jun 08 '23 07:06 rahulsnc3it

does anyone resolved this issue?

rahulsnc3it avatar Jun 13 '23 09:06 rahulsnc3it

@rahulsnc3it try the solution provided in here: https://github.com/Azure-Samples/azure-search-openai-demo/issues/26

I added

import mimetypes mimetypes.add_type('application/javascript', '.js') mimetypes.add_type('text/css', '.css')

to the app.py, and it solved the blank page issue - you still get a AZURE_TENANT_ID flag, but you can query the app.

MaddieGibbons avatar Jun 19 '23 09:06 MaddieGibbons

@MaddieGibbons This didn't change anything for me but I've just noticed after running start.ps1, a popup notification in vscode asks me if I want to open it in a browser or preview it inside vscode. If I preview inside vscode it works fine whereas the web browser will endlessley load/be blank. I'm happy with the preview in vscode work around at least.

phlplowe9 avatar Jun 20 '23 22:06 phlplowe9

Have the same problem. Ran fine previously.

bobberg avatar Oct 23 '23 16:10 bobberg

@bobberg

  • Are you seeing any sort of error?
  • What do you see in the logs?
  • Are you running from a Terminal inside VS Code or elsewhere?
  • Are you using start.ps1, start.sh, or Run&Debug?

pamelafox avatar Oct 23 '23 22:10 pamelafox

I've added some additional .env details and now it is working locally again. I will check which was missing, but it was not the AZURE_TENANT_ID

bobberg avatar Oct 24 '23 05:10 bobberg

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 Jan 13 '24 01:01 github-actions[bot]