Missing file resource - External API

Hi there,

I have a simple flow that downloads an image from Google Drive and sends the file to an external API for processing. It was working just fine until a few days ago and now it keeps returning the error “Missing file resource” when I try to send the data information.

Any ideas on what might be causing this error?

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Did you change versions of n8n? Has anything else changed on your n8n instance/environment?

If not, the most likely thing that changed is the implementation of the API service you are calling. Try calling the same API endpoint outside of n8n, with the same file, form-data elements, headers, etc. to see if the input parameter names have changed or the service now needs the file/binary data in base64 encoded format, or requires some new content-type, authorization, etc. headers, or some other similar change.

Another technique you can use, to capture and examine more details on what is sent and received from the API service, is to configure (self-hosted) n8n to send requests through a proxy.

Next step here is to include information about the API you are calling and expand the Error details part of the output and share what it says.

Hello again,

I tried calling the API directly from my backend and also using Postman. In both cases it worked perfectly. I also reproduced the same parameters inside n8n and it keeps returning errors (a different one by the way).

Error code

400

Full message

400 - "{\"code\":\"ERROR_CODE_INPUT_ERROR\",\"message\":\"Value is not properly formed.\",\"payload\":{\"param\":\"image_uploaded\"}}"

Request

{ "headers": { "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7", "content-type": "multipart/form-data; boundary=--------------------------890540274835140049371507" }, "method": "POST", "uri": "https://XXXX.xano.io", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "formData": { "_overheadLength": 250, "_valueLength": 1100722, "_valuesToMeasure": [], "writable": false, "readable": true, "dataSize": 0, "maxDataSize": 2097152, "pauseStreams": true, "_released": true, "_streams": [], "_currentStream": null, "_insideLoop": false, "_pendingNext": false, "_boundary": "--------------------------890540274835140049371507", "_events": {}, "_eventsCount": 3 }, "encoding": null, "json": false, "useStream": true }

Any additional help on this thread? I’m still having troubles