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

ProjectsApi.get_projects does not work #12

Open
tjsingleton opened this issue Jun 15, 2022 · 2 comments
Open

ProjectsApi.get_projects does not work #12

tjsingleton opened this issue Jun 15, 2022 · 2 comments

Comments

@tjsingleton
Copy link

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'

@carmenquan
Copy link

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

@sloloris
Copy link
Member

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.

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

3 participants