Website and API monitors require HEAD / Logging is lacking #1676

Closed
opened 2026-04-05 16:33:17 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @JesseWebDotCom on 8/17/2023

Discovered that the website and API monitors require HEAD. I didn't see a mention of this anywhere. I have internal API's that only use GET and POST. If I do not enable HEAD in my API, OneUptime will make a HEAD request and get a 403. When checking the monitor logs, I see the 403 error but no mention of the REST method used. It is had logged that it failed with a HEAD request, I would have immediately known how to fix.

My suggestion:

  • add the REST method you use to logging
  • optionally - if HEAD method fails, try the GET or POST anyway.
*Originally created by @JesseWebDotCom on 8/17/2023* Discovered that the website and API monitors require HEAD. I didn't see a mention of this anywhere. I have internal API's that only use GET and POST. If I do not enable HEAD in my API, OneUptime will make a HEAD request and get a 403. When checking the monitor logs, I see the 403 error but no mention of the REST method used. It is had logged that it failed with a HEAD request, I would have immediately known how to fix. My suggestion: - add the REST method you use to logging - optionally - if HEAD method fails, try the GET or POST anyway.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#1676