Google Cloud Storage Create Object "body.getBuffer is not a function error"

Describe the issue/error/question

When trying to upload a file (jpg) to Google Cloud Storage I get the following error:
“body.getBuffer is not a function”.

What is the error message (if any)?

NodeApiError: body.getBuffer is not a function
    at RoutingNode.runNode (C:\Users\Even\Desktop\n8n\n8n\node_modules\n8n-workflow\src\RoutingNode.ts:220:11)
    at Workflow.runNode (C:\Users\Even\Desktop\n8n\n8n\node_modules\n8n-workflow\src\Workflow.ts:1342:11)
    at C:\Users\Even\Desktop\n8n\n8n\node_modules\n8n-core\src\WorkflowExecute.ts:939:29

Please share the workflow

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

Share the output returned by the last node

Information on your n8n setup

  • 0.215.1
  • Node version 16.18
  • With NPM Locally

Workflow Code

“meta”: {
“instanceId”: “89137222f542e4ff7147b1b295fc4e8062b37323caa2e2eb9d573ee2968756d2”
“nodes”: [],
“connections”: {}

No Need. Thanks I already found the issue. My Node version was outdated.

1 Like

Welcome to the community @Pedro_Nieto_Sanchez :tada:

Glad to hear you figured it out already :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.