Open jincod opened 3 years ago
Hi,
I have the same issue. However I think it is coming from the issue that in Configure Systems If I try to do a save now:
2021-03-25 12:18:51.772+0000 [id=12] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://server/configSubmit net.sf.json.JSONException: JSONObject["shouldLogToConsole"] is not a Boolean.
And I got this error on the web site:
Oops! A problem occurred while processing the request.
The shouldLogToConsole is part of the telegram bot part:
Log to console
Check if we should log messages to Jenkins console
If I disable the plugin the Configure System part can be saved. Probably the option is not handled properly.
Hello @miszterx
Updated Token Macro Plugin to 2.15. Issue has been resolved.
Can I close this issue?
Hmm. I have this with Token Macro Plugin 2.15 :( All plugins uptodate and I have ubuntu 20.04 with jenkins 2.277.1.
hi i have the same issue
here is the log
2021-04-02 08:35:10.027+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs 2021-04-02 08:35:10.027+0000 [id=34] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated 2021-04-02 08:35:10.075+0000 [id=49] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Started Download metadata 2021-04-02 08:35:10.091+0000 [id=49] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Download metadata. 15 ms 2021-04-02 08:35:10.145+0000 [id=33] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization 2021-04-02 08:35:10.162+0000 [id=21] INFO hudson.WebAppMain$3#run: Jenkins is fully up and running 2021-04-02 08:35:10.368+0000 [id=42] INFO j.p.t.telegram.TelegramBot#initializeProxy: Proxy successfully initialized 2021-04-02 08:35:10.373+0000 [id=42] INFO j.p.t.telegram.TelegramBotRunner#lambda$new$0: Bot was created 2021-04-02 08:35:11.833+0000 [id=42] SEVERE j.p.t.telegram.TelegramBotRunner#createBotSession: Telegram API error org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException: Error deleting webhook: [404] Not Found at org.telegram.telegrambots.meta.api.methods.updates.DeleteWebhook.deserializeResponse(DeleteWebhook.java:39) at org.telegram.telegrambots.meta.api.methods.updates.DeleteWebhook.deserializeResponse(DeleteWebhook.java:18) at jenkinsci.plugins.telegrambot.telegram.TelegramBot.sendApiMethodWithProxy(TelegramBot.java:239) at jenkinsci.plugins.telegrambot.telegram.TelegramBot.execute(TelegramBot.java:170) at org.telegram.telegrambots.util.WebhookUtils.clearWebhook(WebhookUtils.java:74) Caused: org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException: Error removing old webhook at org.telegram.telegrambots.util.WebhookUtils.clearWebhook(WebhookUtils.java:79) at org.telegram.telegrambots.bots.TelegramLongPollingBot.clearWebhook(TelegramLongPollingBot.java:25) at org.telegram.telegrambots.meta.TelegramBotsApi.registerBot(TelegramBotsApi.java:120) at jenkinsci.plugins.telegrambot.telegram.TelegramBotRunner.createBotSession(TelegramBotRunner.java:71) at jenkinsci.plugins.telegrambot.telegram.TelegramBotRunner.lambda$new$0(TelegramBotRunner.java:61) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
here is jenkins version:
ii jenkins 2.286 all Jenkins is an open source automation server which enables developers around the world to reliably automate their development lifecycle
and here is the plugin version:
server : Ubuntu 20.10 \n \l
maybe the TelegramBots API is so old?, need 5.1.1?
Version report
Jenkins and plugins versions report:
Reproduction steps
Jenkinsfile:
Results
Expected result:
Message sends
Actual result: