Closed stefan04 closed 2 years ago
i have the same error when compile the latest code, please fix this
The last #87 MR broke bot. Have the same issue
https://github.com/inCaller/prometheus_bot/pull/90 - PR with fixes
@stefan04 can you check that latest code works for you now, please?
This version works perfectly!
Same environment as before.
go version
go version go1.17.2 linux/arm64
uname -a
Linux compiler 5.10.92-v8+ #1514 SMP PREEMPT Mon Jan 17 17:39:38 GMT 2022 aarch64 GNU/Linux
after make clean and make....
make test
go build -o prometheus_bot
prove -v
t/curl.t ..
1..25
ok 1 - noGenURL.json template none
ok 2 - production_example.json template none
ok 3 - simpe.json template none
ok 4 - emptyValue.json template none
ok 5 - big_output.json template none
ok 6 - noGenURL.json template production_example.tmpl
ok 7 - production_example.json template production_example.tmpl
ok 8 - simpe.json template production_example.tmpl
ok 9 - emptyValue.json template production_example.tmpl
ok 10 - big_output.json template production_example.tmpl
ok 11 - noGenURL.json template malformed_html.tmpl
ok 12 - production_example.json template malformed_html.tmpl
ok 13 - simpe.json template malformed_html.tmpl
ok 14 - emptyValue.json template malformed_html.tmpl
ok 15 - big_output.json template malformed_html.tmpl
ok 16 - noGenURL.json template default.tmpl
ok 17 - production_example.json template default.tmpl
ok 18 - simpe.json template default.tmpl
ok 19 - emptyValue.json template default.tmpl
ok 20 - big_output.json template default.tmpl
ok 21 - noGenURL.json template detailed_vars.tmpl
ok 22 - production_example.json template detailed_vars.tmpl
ok 23 - simpe.json template detailed_vars.tmpl
ok 24 - emptyValue.json template detailed_vars.tmpl
ok 25 - big_output.json template detailed_vars.tmpl
ok
All tests successful.
Files=1, Tests=25, 120 wallclock secs ( 0.08 usr 0.02 sys + 1.86 cusr 1.63 csys = 3.59 CPU)
Result: PASS
Thank you very much for your support! Greetings...
Stefan
Another hint...
The test script should pause more when sending messages.
Telegram was not always happy about the many messages.
cat bot.log |grep "Error"
2022/06/23 22:21:19 Error sending message: Too Many Requests: retry after 14
2022/06/23 22:21:21 Error sending message: Too Many Requests: retry after 12
2022/06/23 22:21:23 Error sending message: Too Many Requests: retry after 10
2022/06/23 22:21:23 Error sending message: Too Many Requests: retry after 10
Hi, I have loaded the current code onto my Raspberry Pi4 and then compiled it. However, after a
make test
I get the following error when using the templates from this project.Excerpts from the bot.log
This error only occurs in conjunction with the templates. Sending without using a template works.
Excerpts from the bot.log
Output after make test
I have already used this code in July 2021. The commit at that time was:
This code from May 2021 still works today.
I can compile it in the same system environment and use it with the same templates.
There are no errors.
Where is the difference to today's version?
My current environment
Can you help me fix the problem?
Greetings...
Stefan