AWS Textract works locally, but not in the cloud

Describe the problem/error/question

Hi! By following the tutorial at AWS Textract | n8n Docs, I get the error

ERROR: Bad request - please check your parameters
400 - "{\"__type\":\"SerializationException\"}" - {"__type":"SerializationException"}

and the stack trace is

NodeApiError: Bad request - please check your parameters
    at Object.awsApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Aws/Textract/GenericFunctions.js:49:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.awsApiRequestREST (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Aws/Textract/GenericFunctions.js:54:22)
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Aws/Textract/AwsTextract.node.js:104:37)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:696:19)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:656:53

However, when running locally (cloning the repository and changing to the [email protected] tag), and using the same AWS credentials and the same S3 bucket and file, I get no errors and everything works as expected.

Please share your workflow

Described in the tutorial

Information on your n8n setup

  • n8n version: 1.22.5
  • Database (default: SQLite): none
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud and locally
  • Operating system: macOS 13.5.2

Hey @LeoNero,

As mentioned in the other thread you opened I have created NODE-1046 as the internal ticket to look into this, I believe the issue is with the binary data option and the issue happens when using filesystem (which is the cloud default) instead of memory.

Thank you so much! And sorry for the kinda duplicated posts. I tried to delete the other post (which had less information) but was unable too.

1 Like

No worries it happens :slight_smile: