You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lonix1
changed the title
All API endpoints and pages return 200 including non-existent ones
All pages and API endpoints (including non-existent ones) return 200
Jul 7, 2023
Component
server,
Describe the bug
In trying to setup server healthchecks I uncovered an issue related to the API endpoints in version "next".
To eliminate weird config errors, differences in environments, etc., I am going to show a repro performed from inside the server container.
Set up curl:
Request a non-existent page:
That is basically an "empty" page. Let's look at the response code:
That should have returned 404.
Now let's request a non-existent API endpoint:
Same thing.
Now let's request a real API endpoint, for healthchecks:
Same thing. Also, it should not return a page, only a REST response.
Clean up:
Summary:
/api/healthz
endpoint is not working: it's a "proof of life" rather than "proof of health"System Info
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: