Forum Discussion
Azure OpenAI Assistants error to upload file in vector store
You're not alone – this is likely an Azure backend ingestion failure, not a bug in your code.
Here’s what I’d recommend checking:
The file format: even a tiny encoding glitch can cause ingestion failure. Try re-saving as UTF-8 plain text.
Region-specific endpoint: check if your Azure deployment has a regional outage or update push.
File size: Azure ingestion sometimes fails silently if above certain thresholds. Retry with smaller chunks.
Rate limit / hidden backoff: even if not shown, some background processes enforce retry timers. Add a delay between uploads.
Upload method compatibility: the beta .upload_and_poll method might’ve been silently patched. Try .upload() then .poll() manually.
If you run:
client.beta.vector_stores.files.list(vector_store.id)
...and it consistently returns LastError(code='server_error'), it strongly suggests internal service error.
Bonus tip: If needed, I can help write a retry-safe wrapper with backoff handling.
Let me know if this persists — it might be worth contacting Azure support directly with the VectorStore ID for log trace.