My http request node is not authorizing AWS textract endpoin

Describe the problem/error/question

I’m trying to start a textract job using a http node. I have set up the aws credentials, and they do have permissions. I use the aws credential succesfully for example for the standard s3 and dynamodb node, but on the http node with predefined credentials type it does not work. I get the error of missing authorization token.

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: cloud version stable & beta, both with problems
  • Database (default: SQLite): default claud
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default to cloud
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system: cloud

Welcome to the community @Radu !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.


Have you tried accessing the API via any other HTTP client like Postman or curl, for example? Does it work that way?

No, as I would need to generate a token in Postman. The thing is N8N if i look in the console does not add any authorization header @ihortom

I do have in the workflow other nodes such as AWS S3, and AWS DynamoDB and those are beeing authenticated and work properly.

Hey @Radu , perhaps you are using the credentials not valid for this connection. You mention the authorization header. That might imply the Header Auth instead of what you use.

When using Header Auth, the header will be added to the HTTP request, though not reflected in the UI. You can also see what is actually sent out with the request in the Developers Console.

For example, here I applied Header Auth. They are not in UI but the Console shows they were added to the request.

1 Like

@ihortom the problem is that according to the docs the http node, if i choose predefined auth and then aws should work.

this link in docs: Custom API actions for existing nodes | n8n Docs

the aws dynamodb node, has a custom call where it recommends to use it with predefined credentials. This is my problem, even if i try for dynamo a http call i get the same error

@Radu , what happens if you use a dedicated AWS Textract node. Do predefined credentials work in that way? If so, than your HTTP Request node configuration is missing something. You need to check the AWS documentation how to set it up the right way.

@ihortom yes they work properly on any dedicated AWS node. The problem is that according to the n8n official docs, you can choose predefined credentials as authorization as my link above, and that specific part does not work. The predefined credentials for authorization don’t add any headers for authorization as advertised in the documentation.

I faced the same issue, it’s not working unfortunately.

this is obviously a but, as the predefined credentials should add the authorization headers. Why it that field there if it doesn’t add the credentials? It does not make sense to have it and no doing anything, so obviously a bug …

unfortunatly for me I don’t think I’m gonna keep the subscription on the cloud version, and will search for alternatives … or default to coding

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