metropolitan-bronze
metropolitan-bronze3w ago

file post request failing through n8n

@Eric K (COO @Cloudonix) I'm making an http request in my backend system and following the vapi docs to post a file in my account - adding my api token, etc - I get this error, I dont know what is causing it. Have you run into this issue before? Do you know how to solve it?
No description
10 Replies
exotic-emerald
exotic-emerald3w ago
Sorry, I have no knowledge about the Vapi documentation.
Sahil
Sahil3w ago
Check that your Vapi file upload request uses the correct POST endpoint, includes the proper Authorization header, sends multipart/form-data with a supported file type, and matches your assistant ID and server URL..
metropolitan-bronze
metropolitan-bronzeOP3w ago
All of these are imported correctly - still I get this error ... cloudfare is blocking the connection -- I even tried it in the vapi docs test there entered my file and my token and again cloudfare was blocking me
Sahil
Sahil2w ago
Could you please send the request payload you are trying to send?
metropolitan-bronze
metropolitan-bronzeOP2w ago
What do you mean ? the http request node I have on n8n?
metropolitan-bronze
metropolitan-bronzeOP2w ago
No description
No description
No description
metropolitan-bronze
metropolitan-bronzeOP7d ago
Let me know what do you think!
Sahil
Sahil5d ago
Could you send the JSON format of the request? I believe you are viewing the binary version
metropolitan-bronze
metropolitan-bronzeOP5d ago
Vapi docs say the Body Content Type should be Form-data not Json \ What Json format are you reffering to ?
Sahil
Sahil3d ago
My apologies. It looks like you are getting a 403 forbidden error, which is pointing more towards an issue with the API key that was provided. Are you using the public API key or the private key? And have you run a test with that API key using another endpoint/request like a simple GET /assistant?

Did you find this page helpful?