I'm building a web app on v0.dev that integrates with OpenAI Assistants v2.
My app successfully creates threads and runs using OpenAI’s /v2/threads and /v2/runs endpoints.
However, when attempting to upload files to OpenAI’s /v1/files endpoint (which is still used for file uploads even in v2 Assistants), the server consistently returns a 500 Connection error.
- Configure OpenAI SDK (
openainpm package) with proper server-sidefetch(usingundici.fetch). - Successfully create threads and runs with OpenAI Assistants v2 endpoints.
- Attempt to upload a small file (~86 KB PDF) using
openai.files.create({ file, purpose: "assistants" }). - Observe immediate server-side error:
vbnet
CopyEdit
Error during RFP processing: Status 500: Connection error.- Debug logs confirm:
- File buffer is valid (86241 bytes).
- File type is
application/pdf. - Error occurs only during file upload step.
No custom fetch, no manual API call — pure OpenAI Node SDK usage.
- Framework: Custom Node + React (v0 default)
- Hosting environment: v0.dev hosted environment
- Project settings: Using server actions and API routes for all OpenAI calls.
Additional Information:
- OpenAI Assistants v2 flow is fully working (thread creation, run starting).
- Only file uploads (to
/v1/files) are failing. - Same code works fine in other server environments (Vercel, AWS) without modification.
Request:
Could you please confirm whether outbound connections from v0 servers to https://api.openai.com/v1/files are currently restricted, blocked, or proxied?
If so, is there an expected timeline or workaround to allow full OpenAI API support, including file uploads?
Thank you!
