Open farisdurrani opened 3 months ago
Surprisingly, using a signed HttpRequest to the raw URI results in an Unauthorized error as well on TypeScript
hi @farisdurrani, are you using Bun or Deno? I had similar issues until I've came back to the original NodeJS.
No, I am using the original NodeJS. As in, Node v20.11.0 and NPM v10.4.0
Hi @farisdurrani what version of typescript SDK are you using ? Are you able to make API call using raw request signer ?
"typescript": "^5.5.4"
No, I was not able to make an API call using the raw request signer. See: https://github.com/oracle/oci-typescript-sdk/issues/310#issuecomment-2269191644.
Again, it is important to note using the CLI, both on the identity-domains CLI and raw request API, works fine.
@farisdurrani I meant to ask the version of OCI typescript SDK (oci-sdk)
Yes, I've put that info at the end of my original post
I am getting a 401 Unauthorized error when using the
identitydomains
module even when the CLI on the same API URL returns a valid result and all other modules work fine. I am a tenancy administrator. This issue repeats on several tenancies.Given this TypeScript script adapted from the official example,
running this file using node returns this error:
Calling the same API URL using the CLI returns the result as normal:
➜ ~ oci raw-request --http-method GET --target-uri https://idcs-721677994de24d38836f554cc565a9d5.identity.oraclecloud.com:443/admin/v1/Users --profile fdurrani
Relevant software versions:
OS: MacOS 14.6