Getting 404 when retrieving vector store file just after creating a vector store file

Hi OpenAI Developer Community,

I am aware that OpenAI recently is facing a hard time (service degradation) specially in vector store file creation. To overcome this issue, I had to create a loop to guarantee that vector store files are completed.

Now I am getting a 404 from retrieving a vector store file (https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id})
after creating a vector store file (https://api.openai.com/v1/vector_stores/{vector_store_id}/files).

This seems very ackward to me. If I’ve created a vector store file, shouldn’t I be able to retrieve it? Sometimes it takes more than 10 seconds to successfully retrieve vector store file.

Besides waiting for the status change from in_progress to completed, now I have to check if I have an OK responseStatus when retrieving a vector store file.

Is anyone facing the same issues? I am about to set a timer and wait 3s between creating a vector store file and retrieve vector store file.

If you have a better solution how to mitigate this issue, please let me know.

Thanks,

Gustavo

PS: the file under consideration is a simple txt (no images and only text) and it has 100KB or less.