Issue Uploading Files to Vector Store via OpenAI API

Hello,

I have been testing the OpenAI API for vector store usage since today at 9:00 AM KST, but the file uploads have continuously failed.

I also attempted to use the Playground, but experienced the same issue. However, the file upload feature consistently fails—only polling occurs and no actual upload is completed.

Please assist in resolving this issue. Thank you.

24 Likes

Hi, can you share a code snippet of where you’re doing your uploads.

3 Likes

I am facing the same issue. Binding files to vector store have files stuck in_progress for more than 2 hours since today.

File are created, vectors are created, but they are not binding, so the vector store stays empty. I am using the https://platform.openai.com/storage/vector_stores paltform itself and it is not working.

7 Likes
 response = await async_client.files.create(file=(filename, file_content), purpose=purpose)
 
 
openai_vector_store = await self.openai_client.vector_stores.create(
	name=name,
	metadata={"thread_id": thread_id, "user_id": str(user.id), "created_by": "surrodocs_system"},
)
 
self.logger.info(f"[VectorStoreService] Created OpenAI vector store: {openai_vector_store.id}")
 
 
self.logger.info("create_and_poll")
self.logger.info("openai_file_ids: ", openai_file_ids)
vector_store_file_batch = await self.openai_client.vector_stores.file_batches.create_and_poll(
	vector_store_id=vector_store.id, file_ids=openai_file_ids
)

@Foxalabs Thanks so much for your quick reply.
It was working perfectly fine until 11 PM KST, but when I came to work this morning, I found this issue, so I’m leaving an inquiry.

2 Likes

Similar code from my side as well, it is just stuck in in_progress status, even for files with less than 1 MB in size.

It was working fine last night.

const result = await openai.beta.vectorStores.fileBatches.uploadAndPoll( vectorStore.id, { files: myFile } )

3 Likes

Same issue here. It doesn’t work via API neither Playground. No vector store, new or with existing documents takes newly uploaded documents.

2 Likes

I am facing the same issue now.

2 Likes

We have also been encountering issues with uploading files to the vector store over the past few hours.

{

"object": "vector_store",

"created_at": 1754539494,

"usage_bytes": 0,

"file_counts": {

    "in_progress": 7,

    "completed": 0,

    "failed": 0,

    "cancelled": 0,

    "total": 7

},

"status": "in_progress",

"expires_after": null,

"expires_at": null,

"last_active_at": 1754539569,

"metadata": {}

}

1 Like

Same problem with me, please check !

1 Like

I’m facing the same issue as well. Any update from the team?

1 Like

We’re facing the same problem. This is a big issue. Please solve this ASAP!

1 Like

Yup there is issue from their side I guess

2 Likes

We’re also running into the same issue. My code had been working fine up until this morning when I tried to attach a file to a vector store via the OpenAI API—it takes an incredibly long time. I also tested it in the Playground, and the problem is exactly the same.

we are having same issue as well, it was running fine for pass few weeks, and there is problem this morning. Error log = required_action": null,

“last_error”: {

“code”: “vector_store_timeout”,

“message”: “Failed to process files in vector store XXX. Please ensure all files in the vector store are processed before retrying the run.”

},

“model”: “gpt-4.1-mini”,

Similar issue found

error”: “LastError(code=‘vector_store_timeout’, message=‘Failed to process files in vector store vs_xxxx. Please ensure all files in the vector store are processed before retrying the run.’)”

Same

ector_store = client.beta.vector_stores.create(name=“test vector store”)
Traceback (most recent call last):
File “”, line 1, in
vector_store = client.beta.vector_stores.create(name=“test vector store”)
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘Beta’ object has no attribute ‘vector_stores’

Same issue here.

I wait 2 hours and i stuck with an Error Code “Runtime Error”.

I checked if the Files can be listed organised in Vector Store but its not possible, the upload of files working well, but the listing to an vector store is not possible for some reason and causes this issue.

2 Likes

Same here. Vector store keeps empty, even with manual uploading in playground.

3 Likes

Facing the same issue for the last 9 hours, stuck in in_progress

2 Likes

This particular error is in using the wrong API SDK method.

Vector stores have been moved out of “beta”, so no more beta method.


For the other overwhelming reports, I will flag for escalation this API issue, considering multiple reports of the same symptom in attaching files to a vector store ( 2AM in SFO, and lots to announce going on with the API)

1 Like