oracle / oracle/oci-python-sdk

Manual Endpoint Configuration Required for ZprClient in the OCI Python SDK

Open
#705 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

SDK
Dominant language
Python
Stars
474
Forks
321
Avg merge
23m
Merged PRs (30d)
4

Description

Update: This has been fixed in v2.135.2. If you are not able to upgrade to a non-affected version at this time, please use the workaround mentioned below


If you are using or want to use ZprClient in OCI Python SDK then you have to manually update the endpoint.

Description

Users of the OCI Python SDK who wish to utilize ZprClient must manually update the endpoint due to an incorrect configuration in the service endpoint. This issue affects the Zero Trust Packet Routing Service (ZPR) released in version 2.135.1.

Workaround

To resolve this issue, users need to manually set the endpoint when creating a ZprClient instance. Here's an example of how to do this:

zpr_client = oci.zpr.ZprClient(config, service_endpoint="https://zpr.{region}.oci.oraclecloud.com/")

Replace {region} with the appropriate region for your OCI deployment.
The correct endpoint for your specific region can be found in the Oracle Cloud Infrastructure API documentation here.

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

The issue points to ZprClient and its service endpoint but names no source file or test. Check the v2.135.2 release and the ZPR API documentation first; the reported defect is done when users no longer need the manual service_endpoint workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.