[BUG] - Lookup task in Azure AI Studio fails with ClientAuthenticationError: Unexpected content type "text/plain; charset=utf-8" Content: 404 page not found
Describe the bug Running the lookup step using an AOAI connection that uses Entra Auth fails with "ClientAuthenticationError: Unexpected content type "text/plain; charset=utf-8" Content: 404 page not found"
The error doesn't occur when I switch to an AOAI connection using the Api Key.
3 Entra Identities (my personal user, the UAMI attached to the hub, and the System Assigned Identity for the project) all have Open AI User role against the AOAI service.
I can use the Embeddings step / execute a chat completions task from the same Prompt Flow without issues when using an AOAI connection with Entra auth.
How To Reproduce the bug Steps to reproduce the behavior, how frequent can you experience the bug:
- Create an Index in your AI Studio that uses an AOAI connection with Entra
- Create a Prompt Flow
- Create a lookup step, and reference the Index you just created
- Run the PromptFlow. The Lookup step fails with above error.
Expected behavior It should work
Running Information (please complete the following information): Using Prompt Flow in Azure AI Studio
Hi @graemefoster,
For azure ai studio issue, please refer to Frequency asked questions (FAQ) — Prompt flow documentation to create feedback there, thanks.
@0mza987 is the Lookup task not part of PromptFlow? From what I can tell, that task doesn't work when the AOAI connection is using Entra auth / UAMI.
Also running into the same issue after migrating off of API keys. Its definitively an issue with the vector DB tool, calling with a custom tool works.
@aageorge I found a way around this - FWIW it is an AI Studio issue and it's a bug in the version of promptflow-vectordb it uses.
I fixed it by explicitly changing the requirements.txt file to say promptflow-vectordb = 2.0.12
I also was forced to add another requirement - IIRC it was related to a cosmos db import.
Hope that helps.
Hi, we're sending this friendly reminder because we haven't heard back from you in 30 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 7 days of this comment, the issue will be automatically closed. Thank you!