msgbyte / tianji

Tianji: Insight into everything, Website Analytics + Uptime Monitor + Server Status. not only another GA alternatives
https://tianji.msgbyte.com/
Apache License 2.0
1.3k stars 72 forks source link

[Bug] Stop/Start a Monitor will not work #15

Closed rolikeusch closed 8 months ago

rolikeusch commented 8 months ago

if you manually stop a monitor and start it again, it will no longer update.

tianjo001

and it looks like the alarming over telegram is not working. i never got a down message (mail works). (if i test the telegram bot, i get the test notification.) I see this messages in the logs.

ok: false,
      error_code: 400,
      description: "Bad Request: can't parse entities: Character '.' is reserved and must be escaped with the preceding '\\'"
    }

or

data: {
      ok: false,
      error_code: 400,
      description: "Bad Request: can't parse entities: Character '-' is reserved and must be escaped with the preceding '\\'"
    }

...and there is a small typo when you stop a monitor ;) should be stopped

tianji002
moonrailgun commented 8 months ago

okay, telegram has too many character problem, i will adapt it

and for manually stop/start, reload page can fix it?

moonrailgun commented 8 months ago

in my personal hosted tianji instance, start/ stop is work fine.

https://github.com/msgbyte/tianji/assets/6964737/5cfdba76-7c14-4ca6-ae7f-52de6fa9ea4f

if you manual start, monitor will run it once immediately

rolikeusch commented 8 months ago

i also checked it on your test instance, there is the same issue. if i start it again, it updates only once and then never again.

moonrailgun commented 8 months ago

oh, yes, you are right.

its a silly bug. but very serious. thanks for your report. ❤️

moonrailgun commented 8 months ago

v1.3.1 will be fix it quickly

moonrailgun commented 8 months ago

demo has been upgrade, work fine, closed

moonrailgun commented 8 months ago

about telagram character problem, i start a new issue to track

rolikeusch commented 8 months ago

demo has been upgrade, work fine, closed

yes it works now.