Hi n8n team
I’m integrating with WHAPI.Cloud, using a simple POST
request to:
arduino
CopyEdit
https://gate.whapi.cloud/messages/text
When I configure the HTTP Request node in n8n and set authentication to Generic Credential Type → Bearer Auth , I insert my valid token (e.g., nyyLaqOfJMBeYkotyxkL65b3dj19GUY
).
The problem is that after saving the credential and running the workflow, n8n duplicates the token in the final Authorization header — resulting in a malformed request that looks like this:
http
CopyEdit
Authorization: Bearer Bearer nyyLaqOfJMBeYkotyxkL685b3dj19GUY
This causes a 401 Unauthorized
error from the WHAPI API.
I’ve confirmed that:
- The token is valid (tested directly in Postman – works fine).
- The URL and body are correct.
- The Authorization works when I manually add the header in
Send Headers
.
What I’ve Tried:
- Created a new Bearer Auth credential.
- Used both “Generic Credential Type” and “HTTP Request” credential types.
- Tried with and without “Bearer” prefix in the token.