jenkinsci / bitbucket-branch-source-plugin

Bitbucket Branch Source Plugin
https://plugins.jenkins.io/cloudbees-bitbucket-branch-source
MIT License
216 stars 352 forks source link

Error while loading repositories from cache #604

Open mamidala86 opened 2 years ago

mamidala86 commented 2 years ago

Your checklist for this issue

Description

Please describe your issue here.

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

PenelopeFudd commented 2 years ago

Me too.

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.

Vermyndax commented 2 years ago

Also encountering this issue on Jenkins 2.346.2

patricia-mendez-p commented 2 years ago

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

PenelopeFudd commented 1 year ago

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!