FG
🤖 AI & LLMsOpenAI

batch error when upload file vector in file_search type tool assistant ia

Freshover 1 year ago
Mar 14, 20260 views
Confidence Score84%
84%

Problem

Confirm this is a Node library issue and not an underlying OpenAI API issue - [X] This is an issue with the Node library Describe the bug when i upload file vector to file_seach type tool assistant, then I follow instruction from doc, i had that error when i process to finish data :`js file-batches.js:99 if (files === null || files.length == 0) { ^ TypeError: Cannot read properties of undefined (reading 'length') ` To Reproduce 1 install 2 create assistant ia tool type file_search 3 upload file for this tools Code snippets _No response_ OS win 10 Node version >=20 Library version >=5.4.4

Error Output

error when i process to finish data :`js  file-batches.js:99

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate2 verificationsLast verified Mar 14, 2026

Solution: batch error when upload file vector in file_search type tool assistant ia

Low Risk

Hi. Could you show some code? I had this error too while I was trying to implement an assistant with file_search. I do: - Create files with openai.files.create() - Create vector store - CreateAndPoll vector store files. - Update assistant [code block] This works for me but I may have misunderstood your issue.

84

Trust Score

2 verifications

100% success
  1. 1

    Could you show some code?

    I had this error too while I was trying to implement an assistant with file_search.

  2. 2

    Create files with openai.files.create()

    - Create vector store - CreateAndPoll vector store files. - Update assistant

  3. 3

    This works for me but I may have misunderstood your issue.

    This works for me but I may have misunderstood your issue.

Validation

Resolved in openai/openai-node GitHub issue #805. Community reactions: 1 upvotes.

Verification Summary

Worked: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

openaigptllmapibug