oracle / oci-dotnet-sdk

Oracle Cloud Infrastructure SDK for .NET
https://cloud.oracle.com/cloud-infrastructure
Other
53 stars 21 forks source link

OrganizationsClient -> ListOrganizations (rootId), stuck when listing All #155

Closed jbcintra closed 1 year ago

jbcintra commented 1 year ago

Hi, pulling via latest SDK, OrganizationsClient -> ListOrganizations(rootId). In the SDK, calling via the client paginator, it just hangs and is in some loop.

Via the CLI, without the "-all" flag, it returns a single record without problem.

Via both the SDK paginator and the CLI with "-all" flag, the API hangs and does not respond, seemingly in a loop.

jbcintra commented 1 year ago

Changing the code to get the .First() response works ok .... but all in both SDK/API are failing still.

github-anurag commented 1 year ago

@jbcintra Just to confirm is the API also failing with CLI with -all flag?

jbcintra commented 1 year ago

Yes, the following is fine: oci organizations organization list --compartment-id ocid1.tenancy.oc1..* --profile

The following just sits there forever... oci organizations organization list --compartment-id ocid1.tenancy.oc1.. --all --profile

github-anurag commented 1 year ago

Thanks @jbcintra for reporting this issue. I can reproduce this as well on my end. Will forward this issue to the organizations team to investigate more on this.

jbcintra commented 1 year ago

Thanks @github-anurag ...

KartikShrikantHegde commented 1 year ago

@jbcintra Not sure if this is helpful for you now, but the service team has confirmed that the issue should have been fixed in the latest SDK versions. Could you try and confirm you are not facing the issue anymore? Thanks.

jbcintra commented 1 year ago

Hi @KartikShrikantHegde , just checked on the tooling and yes this has kicked into life now. Handy as we look to implement orgs, child tenancies and domains with customers. Many thanks, Justin