Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64440

Rocket Chat plugins - Test connection success but fails in logs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • jennkins 2.270 and plugins rocketchat latest version
      System : Apache Tomcat/9.0.29 Java jdk : 1.8.0_251-b08
      Browser : Firefox developer edition

      Hi,

      On my rocketchat notifier plugin set up, when I check configuration the plugin said sucess in connection test, but in reality, it's a fail like you can see in logs below.

      I am doing sometinh wrong ?

       

       

      // 14-Dec-2020 16:13:55.669 SEVERE [Handling POST /jenkins/descriptorByName/jenkins.plugins.rocketchatnotifier.RocketChatNotifier/testConnection from 127.0.0.1 : https-jsse-nio-8443-exec-15] jenkins.plugins.rocketchatnotifier.rocket.RocketChatClientImpl.sendSingleMessage Could not send message: Response{success=false, messages=null, message=null, users=null, user=null, channels=null, channel=null, version=null, error=[invalid-channel]}
      14-Dec-2020 16:13:55.670 SEVERE [Handling POST /jenkins/descriptorByName/jenkins.plugins.rocketchatnotifier.RocketChatNotifier/testConnection from 127.0.0.1 : https-jsse-nio-8443-exec-15] jenkins.plugins.rocketchatnotifier.RocketClientImpl.publish I/O error error during publishing message
      	jenkins.plugins.rocketchatnotifier.rocket.errorhandling.RocketClientException: The send of the message was unsuccessful. Response{success=false, messages=null, message=null, users=null, user=null, channels=null, channel=null, version=null, error=[invalid-channel]}
      		at jenkins.plugins.rocketchatnotifier.rocket.RocketChatClientImpl.sendSingleMessage(RocketChatClientImpl.java:183)
      		at jenkins.plugins.rocketchatnotifier.rocket.RocketChatClientImpl.send(RocketChatClientImpl.java:148)
      		at jenkins.plugins.rocketchatnotifier.RocketClientImpl.publish(RocketClientImpl.java:37)
      		at jenkins.plugins.rocketchatnotifier.RocketChatNotifier$DescriptorImpl.doTestConnection(RocketChatNotifier.java:634)
      		at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      		at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
      		at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
      		at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
      		at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
      		at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:536)
      		at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      		at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
      		at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
      		at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:281)
      		at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      		at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
      		at org.kohsuke.stapler.Stapler.invoke(Stapler.java:898)
      		at org.kohsuke.stapler.Stapler.invoke(Stapler.java:694)
      		at org.kohsuke.stapler.Stapler.service(Stapler.java:240)
      

       

      Thanks for helmp

            mreinhardt Martin Reinhardt
            jaegger Ray Muggy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: