Bitbucket webhooks fails randomly with 'Connection closed'

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Minor
    • None
    • Environment:

      I can't seem to figure out what exactly is the cause of this, but we're randomly having issues with Webhooks failing from Bitbucket to Jenkins, which is then not running the pipeline 

       

      An example webhook which failed:

       

      Body: 

       

       

      {"eventKey":"repo:refs_changed","date":"2021-08-04T13:47:15+0100","actor":{"name":"*****","emailAddress":"******","id":203,"displayName":"******","active":true,"slug":"*****","type":"NORMAL","links":{"self":[{"href":"https://bitbucket.*****.com/users/******"}]}},"repository":{"slug":"***","id":486,"name":"***","scmId":"git","state":"AVAILABLE","statusMessage":"Available","forkable":true,"project":{"key":"WEB","id":6,"name":"Websites","description":"***","public":false,"type":"NORMAL","links":{"self":[{"href":"https://bitbucket.***.com/projects/WEB"}]}},"public":false,"links":{"clone":[{"href":"https://bitbucket.***.com/scm/web/***.git","name":"http"},{"href":"ssh://git@bitbucket.***.com:7999/web/***.git","name":"ssh"}],"self":[{"href":"https://bitbucket.***.com/projects/WEB/repos/***/browse"}]}},"changes":[{"ref":{"id":"refs/heads/master","displayId":"master","type":"BRANCH"},"refId":"refs/heads/master","fromHash":"d1d063c8f6220a824af691c09acfa9086fabdc4c","toHash":"f97837b29d556ef0baf1a3e444788a12fea252d5","type":"UPDATE"}]}

       

      Response: 

      java.lang.RuntimeException: org.apache.http.ConnectionClosedException: Connection closed

       

      Bitbucket version:

       

        1. 2021-09-09-atlassian-bitbucket.log
          42 kB
          Ffaen
        2. 2021-09-09-atlassian-bitbucket-access.log
          24 kB
          Ffaen
        3. atlassian-bitbucket-access.log
          38 kB
          Ffaen
        4. image-2021-08-04-13-59-35-800.png
          74 kB
          Ffaen
        5. image-2021-08-05-09-13-26-258.png
          61 kB
          Ffaen
        6. jenkins.err.log
          3 kB
          Ffaen

            Assignee:
            Unassigned
            Reporter:
            Ffaen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: