Unable to call API-requests via http-request- / n8n-node due to authorization issues

@wupperpi could you tell me more details about the issue?

Hi Alex,
all my text has gone. Here it is again:

Describe the problem/error/question

I cannot access to n8n via http- / n8n-node.

curl is working fine

curl -X 'GET' \
  'http://n8n:5678/api/v1/workflows' \
  -H 'accept: application/json' \
  -H 'X-N8N-API-KEY: eyJhbG....uvhY'

What is the error message (if any)?

  • http-Node (Header Auth ):
    – Header name must be a valid HTTP token [“mike mike”]
    – Authorization failed - please check your credentials
    { “message”: “‘X-N8N-API-KEY’ header required” }

  • n8n in credentials: Couldn’t connect with these settings - Unauthorized

Please share your workflow

Share the output returned by the last node

./.

Information on your n8n setup

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

Thank you so much for you patiance
Regards

@wupperpi It seems like you didn’t input the authorization parameter. You could fix this by import your curl details just like the picture below:

Hi Alex,
in my case there is no cURL-button (HTTP Request node version 1 (Latest version: 4.2)


And Save n8n-credentials is this

the browser stucked with old http-node version. Delete browser data helped to get new http version. but the issue still remains. And cURL doesn’t work

really sure import cURL works? In my case it does just nothing

same issue to save n8n credentials in pure node.js application.
seems to be something substantial wrong