Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual Endpoint Configuration Required for ZprClient in OCI Typescript SDK #322

Open
rkumarpa opened this issue Oct 1, 2024 · 0 comments
Labels
SDK Issue pertains to the SDK itself and not specific to any service

Comments

@rkumarpa
Copy link
Contributor

rkumarpa commented Oct 1, 2024

Update: This has been fixed in v2.95.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 Typescript SDK then you have to manually update the endpoint.

Description

Users of the OCI Typescript 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.95.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:

    const common = require("oci-common");
    const zpr = require("oci-zpr");
     
    const zprClient = new zpr.ZprClient({
       authenticationDetailsProvider: provider
    });
    zprClient.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.

@rkumarpa rkumarpa added the SDK Issue pertains to the SDK itself and not specific to any service label Oct 1, 2024
@rkumarpa rkumarpa pinned this issue Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SDK Issue pertains to the SDK itself and not specific to any service
Projects
None yet
Development

No branches or pull requests

1 participant