MAJOR bug in OpenAI API: vectorStores.files.list

Our entire system is DOWN because of a new bug in the OpenAI API for listing files in a vector store: vectorStores.files.list. We are calling it via the nodejs APIs, but I’ve confirmed that it is also broken when calling it directly using curl.

In the test I ran, I uploaded a file, then created a vector store, then added that file into the vector store. Now when I list files in the vector store, I am told there are zero files there. But if I ask specifically for the file I uploaded, it is indeed there. The “list” API is simply broken.

Here are actual curl calls (with actual IDs, but with our tokens hidden). The first call shows that the file exists in that vector store. The second call shows that the list returns none.

This is urgent to us because we periodically synchronize our list of files that we expect in the vector store with what OpenAI reports is there. We will upload anything that is missing. So we are continually uploading more and more copies of the same files.

kduffie$ curl https://api.openai.com/v1/vector_stores/vs_68094d70305481919003c4f34c721cfb/files/file-46igVDuSRUGzuFjduygPrn -H "Authorization: Bearer sk-proj-xxxxxxxxxxxx" -H "Content-Type: application/json" -H "OpenAI-Beta: assistants=v2"
{
  "id": "file-46igVDuSRUGzuFjduygPrn",
  "object": "vector_store.file",
  "usage_bytes": 17216,
  "created_at": 1745440686,
  "vector_store_id": "vs_68094d70305481919003c4f34c721cfb",
  "status": "completed",
  "last_error": null,
  "chunking_strategy": {
    "type": "static",
    "static": {
      "max_chunk_size_tokens": 800,
      "chunk_overlap_tokens": 400
    }
  },
  "attributes": {}
}
kduffie$ curl  https://api.openai.com/v1/vector_stores/vs_68095060792c8191a49ebde65cf8c8b7/files -H "Authorization: Bearer sk-proj-xxxxxxxxxxxxxxx" -H "Conten-Type: application/json" -H "OpenAI-Beta: assistants=v2"
{
  "object": "list",
  "data": [],
  "first_id": null,
  "last_id": null,
  "has_more": false
}
1 Like

In my example here the two vector store IDs are not the same – so this is not demonstrating the problem that we are having. I will try to reproduce it with a corrected example…

I’ve not tried to reproduce (working on some stuff), but I’ve passed the issue along to the OpenAI team. Thanks for reporting.

Hi @kduffie, thank you for the report! Looking into this now

And thank you @PaulBellow for escalating 🙏

1 Like

Hi @kduffie, openai dev here. Just tried to repro, but doesn’t. Do you have a request ID, or the specific vector-store ID that exhibits this problem? Thanks!

1 Like

I’m ashamed to admit that it turns out to be a bug on our side. Sorry!

2 Likes

Glad we figured it out, one way or another 😄 Thanks for letting us know!

1 Like