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

Error when uploading files after setting environment variables

Open Thomasbjerke opened this issue 3 months ago • 1 comments

Please provide us with the following information:

I have tried setting environment variables for enabling login and document level access control, as well as user document upload (also made sure i had sufficient permissions to create Entra apps in Azure). The problem is that when logging in and uploading a file, i get error "Error uploading file - please try again or contact admin". This happens regardless of file size and file name. The file is uploaded to storage account, but the data does not appear in the index, and the chatbot is not able to answer questions with info from the uploaded file. I have tried both with and without integrated vectorization.

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

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

Minimal steps to reproduce

  1. Set these environment variables:
  • azd env set AZURE_USE_AUTHENTICATION true

  • azd env set AZURE_ENABLE_GLOBAL_DOCUMENT_ACCESS true

  • azd env set AZURE_ENABLE_UNAUTHENTICATED_ACCESS true

  • azd env set AZURE_AUTH_TENANT_ID <YOUR-TENANT-ID>

  • azd auth login --tenant-id <YOUR-TENANT-ID>

  • azd env set USE_USER_UPLOAD true

I get the same error whether i use integrated vectorization or not.

  1. Run azd up

Any log messages given by the failure

"Error uploading file - please try again or contact admin"

Expected/desired behavior

No error and the chatbot should be able to answer questions using the uploaded files.

azd version?

1.10.3


Thanks! We'll be in touch soon.

Thomasbjerke avatar Nov 01 '24 13:11 Thomasbjerke