launchdarkly/api-client-python

ProjectsApi.get_projects does not work

Opened this issue · 2 comments

I tested this w\ 8.0.0 and 9.0.1.

configuration = launchdarkly_api.Configuration()
configuration.api_key['ApiKey'] = API_KEY

from launchdarkly_api.api import projects_api

api_client = launchdarkly_api.ApiClient(configuration)
projects_client = projects_api.ProjectsApi(api_client)
projects_client.get_projects()

TypeError: _from_openapi_data() missing 1 required positional argument: 'environments'

Hi @tjsingleton, thank you for reaching out! My suspicion is this is due to a new API version we released that our current client library is not compatible with. If you use an API key targeting 20210729 instead (in the past week we rolled out all API keys to default be created with 20220603). Could you try creating a new token set with that API version?

https://apidocs.launchdarkly.com/#section/Overview/Versioning

Hi @tjsingleton ! Did this end up working for you? If so, we'll go ahead and close the issue; if you don't respond, we'll assume all is well and close it at the end of the week.