QueueClient - Wrong endpoint template

オープン
#666 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
java
領域
api, cloud

調査の方向性

22 行目の com.oracle.bmc.queue.QueueClient から始め、Queue クライアントで使用されるサービスエンドポイントのテンプレートを確認します。結果として生成される GetMessages リクエストが、エラーの詳細に示されている cell-1 の Queue エンドポイントを使用することを確認し、その後、クライアントで手動設定されたエンドポイントが不要になっていることを検証します。

索引モデルが issue の本文から書いたものです。

説明

SDK

oci-java-sdk-queue, version 3.59.0.

Please adjust the queue endpoint.

Class com.oracle.bmc.queue.QueueClient, line 22:

from
.serviceEndpointTemplate("https://messaging.{region}.oci.{secondLevelDomain}")
to
.serviceEndpointTemplate("https://cell-1.queue.messaging.{region}.oci.{secondLevelDomain}")

As a workaround for this issue, I am forced to set the endpoint manually, which is not desirable.

Error detalis:

Exception in thread "main" com.oracle.bmc.model.BmcException: Error returned by GetMessages operation in Queue service.(404, NotAuthorizedOrNotFound, false) Please use endpoint https://cell-1.queue.messaging.us-ashburn-1.oci.oraclecloud.com (opc-request-id: XXXX)
Timestamp: 2025-03-11T12:51:54.191Z
Client version: Oracle-JavaSDK/3.59.0
Request Endpoint: https://messaging.us-ashburn-1.oci.oraclecloud.com/20210201/queues/{queue-id}/messages

主要言語
Java
スター
243
フォーク
171
平均マージ
5分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oracle/oci-java-sdk のほかの issue

oracle/oci-java-sdk の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。