-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message do not sended. [400] Bad Request: can't parse entities #33
Comments
Hi @mausspb How do you set version_parametr in build environment? |
|
I think troubl was from whitespace in end of line in the body |
Bug reproduced again with other data ....
|
I found problem here, with again - markdown. May be you implement the code for check in markdown ? Or this is already implements in new version? |
@mausspb Indeed it's a bug with Markdown parsing. In your message it's probably triggering to the underscore char "_". I've escaped it with 2 leading slashes and everything worked out, e.g. |
This is happening because of underscore char. |
I get error Jenkins log all.
Message do not sended.
I'm not use mardown, simple Letter and number, like
Version = ${version_parametr}
, in log job i seeVersion = 123
, but in log jenkins i see next error:org.telegram.telegrambots.exceptions.TelegramApiRequestException: Error sending message: [400] Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 133 at org.telegram.telegrambots.api.methods.send.SendMessage.deserializeResponse(SendMessage.java:170) at org.telegram.telegrambots.api.methods.send.SendMessage.deserializeResponse(SendMessage.java:24) at jenkinsci.plugins.telegrambot.telegram.TelegramBot.sendApiMethodWithProxy(TelegramBot.java:222) at jenkinsci.plugins.telegrambot.telegram.TelegramBot.execute(TelegramBot.java:153) at jenkinsci.plugins.telegrambot.telegram.TelegramBot.sendMessage(TelegramBot.java:80) at jenkinsci.plugins.telegrambot.telegram.TelegramBot.lambda$sendMessage$0(TelegramBot.java:102) at java.lang.Iterable.forEach(Iterable.java:75) at jenkinsci.plugins.telegrambot.telegram.TelegramBot.sendMessage(TelegramBot.java:102) at jenkinsci.plugins.telegrambot.TelegramBotBuilder.perform(TelegramBotBuilder.java:63) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.Build$BuildExecution.build(Build.java:206) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1810) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)
The text was updated successfully, but these errors were encountered: