conductor-oss / conductor-oss/python-sdk

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

未关闭
#280 1 条评论 1 个 reaction 已指派 1 人 已被 @IgorChvyrov-sm 认领 在 GitHub 查看
bug
主要语言
Python
星标
104
派生
42
平均合并
2 天 1 小时
30 天内合并 PR
3

描述

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`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。