Hello @Diderik.TWC
Thanks for reaching out to us, it may be related to the dependencies, but as your said this issue occurs when trying to consume the model via Steamlit, it may be related to the Streamlit as well. Could you please check on your CORS setting to see if your service/endpoint allows Streamlit to connect?
I would highly commend your connecting with Streamlit support to see if there is any set up need to be done.
At the meantime, I am happy to enable you a free ticket to connect with Azure Support as well if you want to double check on both sides.
Basically for 424 and 401 errors, I think you have checked on below items but still want to double click on it - 424 Client Error: Failed Dependency
This error typically indicates that a request could not be completed because it depended on another action that failed. Here are a few steps to troubleshoot this:
Check Dependencies: Since you mentioned Azure Blob Storage and Azure AI Search, ensure that both services are accessible and properly configured. Verify that the data in Azure Blob Storage is available and correctly indexed in Azure AI Search.
Logs and Diagnostics: Look into the logs of both Azure AI Studio and Azure Blob Storage. They might provide more context on what failed.
Model Changes: Given that significant changes were made to the prompt flow, it's possible that the new changes introduced some dependencies or requirements that are not being met. Review the changes to ensure everything is correctly configured.
401 Unauthorized Error: key_auth_access_denied
A 401 error usually points to authentication issues. Here’s how to address this:
- Verify API Key: Double-check the API key you’re using. Make sure it's the correct one associated with your deployed model. If possible, regenerate the key and update your Streamlit application.
- Access Permissions: Ensure that the API key has the necessary permissions to access the deployed model. You can check this in the Azure portal under the corresponding resource.
- Endpoint Configuration: Make sure you're using the correct endpoint URL for your model. Sometimes, different environments (like development vs. production) might have different endpoints.
- CORS Settings: If you’re running the Streamlit app locally, ensure that CORS (Cross-Origin Resource Sharing) settings on your Azure resources allow requests from your local environment.
I hope this helps!
Regards,
Yutong
-Please kindly accept the answer if you feel helpful to support the community, thanks a lot.