REST API Stuck and Only Returns SSH-2.0-SSHD-CORE-0.9.0-ATLASSIAN-5

プラットフォームについて: 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 は除く

症状

When connecting to the Bitbucket Server REST API the following is returned instead of the expected response.

atlassian-bitbucket.log に次のエラーが返される。

curl -i --user <USER>:<PASS> -v http://localhost:7999/rest/api/1.0/projects/<PROJECT>/repos/<REPO>/pull-requests * Adding handle: conn: 0x7fb89c004000 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x7fb89c004000) send_pipe: 1, recv_pipe: 0 * About to connect() to localhost port 7999 (#0) * Trying ::1... * Connected to localhost (::1) port 7999 (#0) * Server auth using Basic with user '<USER>' > GET /rest/api/1.0/projects/<PROJECT>/repos/<REPO>/pull-requests HTTP/1.1 > Authorization: Basic amVmZjpqZWZm > User-Agent: curl/7.30.0 > Host: localhost:7999 > Accept: */* > SSH-2.0-SSHD-CORE-0.9.0-ATLASSIAN-5

原因

The REST API calls are being used on the SSH port for Bitbucket Server. In this case, port 7999 is used for SSH and HTTP traffic occurs on port 7990.

ソリューション

Change the curl command so that the correct port for HTTP traffic is used.

curl -i --user <USER>:<PASS> -v http://localhost:7990/rest/api/1.0/projects/<PROJECT>/repos/<REPO>/pull-requests
更新日時: September 25, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。