Skip to content

[GOWS] Request failed with status code 401 API #1573

@italomelocosta

Description

@italomelocosta

I am experiencing a persistent 401 Unauthorized error when trying to connect to my WAHA instance. It seems the API key defined in my docker-compose.yml (deployed via Portainer/Docker Swarm) is not being correctly read by the WAHA service.

I receive a 401 error from:
The WAHA Dashboard itself.
My Chatwoot integration.
Direct curl commands to the API.

This suggests the WAHA_API_KEY_PLAIN environment variable is being ignored or overridden, as the curl test proves the API is rejecting the key.
My Environment
Deployment: Docker Swarm
Management: Portainer
Proxy: Traefik

I have also tried to force-redeploy the stack via Portainer ("Update the stack") to ensure the environment variables are reloaded, but the problem persists.

Is there a different variable I should be using for Docker Swarm, or is this a potential bug?

patron:PLUS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions