Skip to content
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

Telegram Bot Not Send message #73

Open
BocharnikovDmitry opened this issue Jan 13, 2022 · 5 comments
Open

Telegram Bot Not Send message #73

BocharnikovDmitry opened this issue Jan 13, 2022 · 5 comments

Comments

@BocharnikovDmitry
Copy link

Jenkins and plugins versions report

telegramSend(message: "Hello World", chatId: 977645935)

What Operating System are you using (both controller, and any agents involved in the problem)?

Ubuntu 20

Reproduction steps

Write name and Token in Global Setting

Expected Results

Recieve Message

Actual Results

Message Not Recieved

Anything else?

No response

@chipcop106
Copy link

any update? I got same error

@brgv
Copy link

brgv commented Mar 17, 2022

Hello.

Install via the release file hpi, not via the plugin manager. So messages started working for me.

According to the server logs, you can see the 404 error, most likely the org.telegram.telegrambots dependency update is missing, in the version that comes through the plugin manager.

@krepkay
Copy link

krepkay commented Mar 28, 2022

Yeah, can confirm it.
I've installed plugin with hpi file and everything is ok now.

Thank you for the solution! Cheers!

@dstd
Copy link

dstd commented Jun 21, 2022

@nikitabelonogov any chance to see a new release, with fix of the issue which already is in master branch?

@BocharnikovDmitry
Copy link
Author

No Working

PipeLine Text

pipeline {
    agent { label 'S1' }
    
    post {
        failure {
            bat "echo failure"
        }
        
        success {
            bat "echo success"      
        }
    }
    
    stages {
        stage('Send') {
            steps {
               telegramSend(message: 'Test Jenkins', chatId: -1001330954208)                
            }
        }
    }
}

ERROR

java.lang.NullPointerException
at jenkinsci.plugins.telegrambot.TelegramBotMessager.perform(TelegramBotMessager.java:71)
at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants