hyperjumptech / monika

Monika is a command line application to monitor every part of your web app using a simple YAML configuration file. Get alert not only when your site is down but also when it's slow.
https://monika.hyperjump.tech
MIT License
598 stars 66 forks source link

Undici crash even when fetch is not used #1263

Closed syamsudotdev closed 6 months ago

syamsudotdev commented 6 months ago

Describe the bug Running Monika with --symonUrl <URL> --symonKey <UUID> --follow-redirects=5 --retryInitialDelayMs=150000 --ignoreInvalidTLS will log errors from undici.

To Reproduce Steps to reproduce the behavior:

  1. monika --symonUrl <URL> --symonKey <UUID> --follow-redirects=5 --retryInitialDelayMs=150000 --ignoreInvalidTLS
  2. See error in screenshot

Expected behavior Running command mentioned above should not log undici errors, as Monika is not provided with --native-fetch flag. Thus not using node.js' fetch API and should not log undici errors.

Screenshots image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

dennypradipta commented 6 months ago

Got this thought after waking up today: Maybe Monika v1.19.1 isn't running very well with Symon because Monika didn't catch this error, hence breaking the probing mechanism, causing Monika only reported few probes only.