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

Error on get_cloud_provider_regions #51

Open
omrirh opened this issue Apr 3, 2023 · 0 comments
Open

Error on get_cloud_provider_regions #51

omrirh opened this issue Apr 3, 2023 · 0 comments

Comments

@omrirh
Copy link

omrirh commented Apr 3, 2023

Getting a ApiValueError on using get_cloud_provider_regions via KafkaManagement API using the following code:

configuration = rhoas_kafka_mgmt_sdk.Configuration(
        host=ocm_base_api_url,
        access_token=access_token,
    )
with rhoas_kafka_mgmt_sdk.ApiClient(configuration=configuration) as kafka_mgmt_client:     
    kafka_mgmt_api_instance = rhoas_kafka_mgmt_sdk.api.default_api.DefaultApi(api_client=kafka_mgmt_client)
    kafka_regions = kafka_mgmt_api_instance.get_cloud_provider_regions(id=CLOUD_PROVIDER)
    ...

Error log:

rhoas_kafka_mgmt_sdk.exceptions.ApiValueError: Invalid inputs given to generate an instance of 'List'. The input data was invalid for the allOf schema 'List' in the composed schema 'CloudRegionList'. Error=ObjectReference._from_openapi_data() missing 1 required positional argument: 'href'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant