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

Missing authentication when downloading Avatar

XMLWordPrintable

      I'm seeing those errors in the log, I expect the credentials are valid since other functions of the plugin work

      Feb 24, 2020 2:27:18 PM INFO com.cloudbees.jenkins.plugins.bitbucket.BitbucketTeamMetadataAction$BitbucketAvatarCacheSource fetch
      
      IOException: I/O error when accessing URL: /rest/api/1.0/projects/J4A/avatar.png
      com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 401: .
      HttpResponseProxy{HTTP/1.1 401  [Server: nginx/1.6.2, Date: Mon, 24 Feb 2020 14:27:18 GMT, Content-Type: application/json;charset=UTF-8, Transfer-Encoding: chunked, Connection: keep-alive, X-AREQUESTID: @16SCIDTx987x473696093x3, X-ASEN: SEN-9755481, WWW-Authenticate: Basic realm="Atlassian Bitbucket", Vary: Accept-Encoding] org.apache.http.client.entity.DecompressingEntity@7fe95b62}
      	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getImageRequest(BitbucketServerAPIClient.java:877)
      	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getTeamAvatar(BitbucketServerAPIClient.java:728)
      Caused: java.io.IOException: I/O error when accessing URL: /rest/api/1.0/projects/J4A/avatar.png
      	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getTeamAvatar(BitbucketServerAPIClient.java:733)
      	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketTeamMetadataAction$BitbucketAvatarCacheSource.fetch(BitbucketTeamMetadataAction.java:80)
      	at com.cloudbees.jenkins.plugins.bitbucket.avatars.AvatarCache$FetchImage.call(AvatarCache.java:624)
      	at com.cloudbees.jenkins.plugins.bitbucket.avatars.AvatarCache$FetchImage.call(AvatarCache.java:612)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      

            Unassigned Unassigned
            jbochenski Jakub Bochenski
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: