conductor-oss / conductor-oss/python-sdk

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

Đang mở
#280 1 bình luận 1 reaction 1 người được giao Được @IgorChvyrov-sm nhận Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
104
Fork
42
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
3

Mô tả

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:

```python
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.

```traceback
>>> secret_resource_api.list_all_secret_names()
Traceback (most recent call last):
File "", line 1, in
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`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.