bitbucket-branch-source-plugin icon indicating copy to clipboard operation
bitbucket-branch-source-plugin copied to clipboard

Error while loading repositories from cache

Open mamidala86 opened this issue 2 years ago • 4 comments

Your checklist for this issue

  • [x] Jenkins version - 2.289.3

  • [x] Plugin version - 762.v969cfe087fc0

  • [x] Bitbucket cloud - Yes

  • [x] Bitbucket server and version

Description

Please describe your issue here.

Getting an message as " error while loading repositories from cache" under repositories section when filled in owner.

mamidala86 avatar May 25 '22 16:05 mamidala86

Me too.

  • [x] Jenkins version - 2.332.3
  • [x] Plugin version - 773.v4b_9b_005b_562b_
  • [x] Bitbucket cloud - Yes
  • [x] Bitbucket server and version - Cloud version as of 2022-06-22

There's no indication of whether the app password is being sent correctly, or a way to reproduce the error with curl (with password blanked out). Tcpdump does show a TLS connection being established with api.bitbucket.org, so at least that works.

PenelopeFudd avatar Jun 22 '22 19:06 PenelopeFudd

Also encountering this issue on Jenkins 2.346.2

Vermyndax avatar Aug 02 '22 22:08 Vermyndax

Also encountering this issue on Jenkins: 2.346.3, plugin version: 791.vb_eea_a_476405b

patricia-mendez-p avatar Sep 09 '22 18:09 patricia-mendez-p

I fixed my problem after an extensive chat with Bitbucket tech support; it turns out the username to use is the username of the account, not the API key label, which is only used for logging purposes.

They will be updating the Bitbucket online documentation to spell that out more clearly, so that's good.

The bitbucket branch source plugin could still be improved a bit, by displaying the username being sent and the error message coming back, and/or showing the request as a curl command that has the password blanked out. That would have really shortened the troubleshooting, by immediately ruling out Jenkins as the source of the problem. :-)

Thanks!

PenelopeFudd avatar Nov 15 '22 08:11 PenelopeFudd