Skip to content

Watchtower API Mode always returns 200 OK status code #1095

@dumbasPL

Description

@dumbasPL

Describe the bug
When using watchtower in API mode sending any request to v1/update endpoint it will always return status 200 OK.

To Reproduce

  1. Setup watchtower in API mode
  2. Make a request to http://ip:port/v1/update with missing/invalid Authorization header
  3. Look at response code

Expected behavior
The API returns 401 Unauthorized whenever the Authorization header is missing/invalid

Screenshots
image

Environment
Unrelated

Logs from running watchtower with the --debug option
"Updates triggered by HTTP API request." only triggered when providing a valid token

Additional context
Would be nice to have meaningful status codes instead of just silently failing

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