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

X-Bitbucket-Type header / server_url request parameter not found

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We're using Bitbucket Server 5.9.1, Jenkins 2.159 and bitbucket-branch-source-plugin 2.4.0.

      The automatic creation of the Webhook within Bitbucket works without any problems but when the repository changes (e.g. because of a push) we receive the following Error in Jenkins:

      X-Bitbucket-Type header / server_url request parameter not found. Bitbucket Cloud webhook incoming.
      

      And the underlying Multibranch Pipelines are not triggered.

      I also checked: The Server URL is configured within Bitbucket

        Attachments

          Activity

          Hide
          gpxricky GPX Ricky added a comment -

          I have the same issue. We are using bitbucket-branch-source-plugin 2.4.0 and Bitbucket Server 5.9.0.

          Show
          gpxricky GPX Ricky added a comment - I have the same issue. We are using bitbucket-branch-source-plugin 2.4.0 and Bitbucket Server 5.9.0.
          Hide
          jkobus Jacek added a comment - - edited

          Im using multibranch setup and since this morning no new builds are triggered. I only see this message in logs.

          It started happening with version 2.3 of this plugin, so I've updated all plugins, now the same thing happens with 2.4.1.

          Jenkins 2.150.2, Bitbucket cloud.

           
          Update: 

          In my case it was:

          com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 403: Forbidden.
          Too many invalid password attempts. Log in at https://id.atlassian.com/ to restore access.
          

          It was not related to the log message in this task.

          Show
          jkobus Jacek added a comment - - edited Im using multibranch setup and since this morning no new builds are triggered. I only see this message in logs. It started happening with version 2.3 of this plugin, so I've updated all plugins, now the same thing happens with 2.4.1. Jenkins 2.150.2, Bitbucket cloud.   Update:  In my case it was: com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 403: Forbidden. Too many invalid password attempts. Log in at https://id.atlassian.com/ to restore access. It was not related to the log message in this task.
          Hide
          dpat65 Darin Patrick added a comment -

          I am also experiencing the same issue. 

          However I was able to work around the issue by adding the server_url parameter to the webhook URL.

          https://<JENKINS_URL>/bitbucket-scmsource-hook/notify?server_url=<BITBUCKET_SERVER_URL> 
          Show
          dpat65 Darin Patrick added a comment - I am also experiencing the same issue.  However I was able to work around the issue by adding the server_url parameter to the webhook URL. https: //<JENKINS_URL>/bitbucket-scmsource-hook/notify?server_url=<BITBUCKET_SERVER_URL>
          Hide
          benbrummer Benjamin Brummer added a comment - - edited

          When i let the plugin manage the hooks it configures the webhook on Bitbucket to

          https://jenkins.company.com/bitbucket-scmsource-hook/notify?server_url=https%3A%2F%2Fbitbucket.company.com
          

          Similar to Darin Patrick's comment. It works without any problem. Maybe this simply needs to be updated in the plugin wiki?

          Show
          benbrummer Benjamin Brummer added a comment - - edited When i let the plugin manage the hooks it configures the webhook on Bitbucket to https: //jenkins.company.com/bitbucket-scmsource-hook/notify?server_url=https%3A%2F%2Fbitbucket.company.com Similar to Darin Patrick 's comment. It works without any problem. Maybe this simply needs to be updated in the plugin wiki?
          Hide
          rhierlmeier rhierlmeier added a comment -

          The workaround is not working for me. We are using Jenkins 2.164.3, bitbucket-branch-source-plugin 2.4.4 and Bitbucket server 5.6.1.
          I enabled the system logs for the logger com.cloudbees.jenkins.plugins.bitbucket.
          It prints the following logs when a change to a PR was pushed:

          Jul 01, 2019 8:48:13 AM FINE com.cloudbees.jenkins.plugins.bitbucket.hooks.BitbucketSCMSourcePushHookReceiver
          X-Bitbucket-Type header / server_url request parameter not found. Bitbucket Cloud webhook incoming.
          Jul 01, 2019 8:48:13 AM FINE com.cloudbees.jenkins.plugins.bitbucket.hooks.BitbucketSCMSourcePushHookReceiver
          server_url request parameter found. Bitbucket Native Server webhook incoming.
          
          Show
          rhierlmeier rhierlmeier added a comment - The workaround is not working for me. We are using Jenkins 2.164.3, bitbucket-branch-source-plugin 2.4.4 and Bitbucket server 5.6.1. I enabled the system logs for the logger com.cloudbees.jenkins.plugins.bitbucket . It prints the following logs when a change to a PR was pushed: Jul 01, 2019 8:48:13 AM FINE com.cloudbees.jenkins.plugins.bitbucket.hooks.BitbucketSCMSourcePushHookReceiver X-Bitbucket-Type header / server_url request parameter not found. Bitbucket Cloud webhook incoming. Jul 01, 2019 8:48:13 AM FINE com.cloudbees.jenkins.plugins.bitbucket.hooks.BitbucketSCMSourcePushHookReceiver server_url request parameter found. Bitbucket Native Server webhook incoming.

            People

            • Assignee:
              Unassigned
              Reporter:
              forster_ch Christoph Forster
            • Votes:
              8 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: