Failed to load data from Bitbucket. 401 Unauthorized using app password from Bitbucket cloud
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
問題
An attempt to add Bitbucket Cloud Linked repository with username and password authentication to Bamboo, fails with an error message of "Can't find a repository named {name}" in Bamboo UI, and the following appears in the log file atlassian-bamboo.log
WARN [http-nio-8085-exec-5] [RESTCall] Response from GET https://api.bitbucket.org/2.0/workspaces/USERNAME/ (404)原因
Bitbucket cloud API to fetch repository includes the workspace name as a URL parameter.
GET /2.0/repositories/{workspace}/{repo_slug}The workspace name should match the username used to access to access the repository. causing only a search of repository with the username to be successful, but attempts to save the repository returned 404.
ソリューション
Ensure the workspace name is same as the username, e.g. if a username is johnc changed the workspace name to be johnc .
この内容はお役に立ちましたか?