Skip to content

Basic Example: AttributeError: 'Configuration' object has no attribute 'select_header_accept' #280

@chalbersma

Description

@chalbersma

I've been working on a basic secrets management example, the idea being to push tokens into Orkes/Conductor for various purposes. Have the following example code:

from conductor.client.configuration.configuration import Configuration
from conductor.client.http.api.secret_resource_api import SecretResourceApi

api_config = Configuration()

secret_resource_api = SecretResourceApi(api_client=api_config)
secret_resource_api.list_all_secret_names()

This code falls flat on it's face before even making a network request.

>>> secret_resource_api.list_all_secret_names()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/chalbersma/Documents/src/github.com/soxhub/chips/venv/lib/python3.11/site-packages/conductor/client/http/api/secret_resource_api.py", line 422, in list_all_secret_names
    (data) = self.list_all_secret_names_with_http_info(**kwargs)  # noqa: E501
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chalbersma/Documents/src/github.com/soxhub/chips/venv/lib/python3.11/site-packages/conductor/client/http/api/secret_resource_api.py", line 468, in list_all_secret_names_with_http_info
    header_params['Accept'] = self.api_client.select_header_accept(
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Testing done on conductor-python==1.1.10 and python 3.11.11

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions