InternalServerError (Error code 500) when trying to list files from file_batches filtering by “failed”.
Code:
completed_vector_store_files = client.beta.vector_stores.file_batches.list_files(
vector_store_id=vector_store_id,
batch_id=batch_id,
limit=100,
filter="failed"
)
Error:
An error occurred: Error code: 500 - {'error': {'message': 'The server had an error processing your request.
The batch object:
VectorStoreFileBatch(id='vsfb_e9dd5...', created_at=1727632503, file_counts=FileCounts(cancelled=0, completed=205, failed=59, in_progress=0, total=264), object='vector_store.file_batch', status='completed', vector_store_id='vs_Dca...')
OBS: Without ‘filter’ parameter, the error also happens. I guess it’s because of the “failed” ones.