oracle / oracle/oci-java-sdk

QueueClient - Wrong endpoint template

Open
#666 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

SDK
Dominant language
Java
Stars
243
Forks
171
Avg merge
30m
Merged PRs (30d)
4

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in com.oracle.bmc.queue.QueueClient at line 22 and inspect the service endpoint template used by the Queue client. Confirm the resulting GetMessages request uses the cell-1 queue endpoint shown in the error details, then verify the client no longer requires a manually configured endpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, cloud
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.