conductor-oss / conductor-oss/python-sdk

Get AuthorizationException when trying to update variables of a started workflow

Đang mở
#248 3 bình luận 0 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'm trying to set some workflow variables just after starting a workflow with this code:

```python
clients = OrkesClients(configuration=config)
executor = WorkflowExecutor(config)
runner = clients.get_workflow_client()

request = StartWorkflowRequest(
name="flow", correlation_id="corr_id", version=1)
flow_id = runner.start_workflow(request)
runner.update_variables(flow_id, variables={"myglobal": "global"})
```

But I'm getting a 404 error, which is returned as result of an internal `ApiException` raised from `conductor/client/http/rest.py`. It seems it is unable to reach `/workflows/{workflow_id}/variables`:

![image](https://github.com/conductor-sdk/conductor-python/assets/1499916/db7e9391-46ca-42d1-97d3-75d4c7160730)

![image](https://github.com/conductor-sdk/conductor-python/assets/1499916/c26a3f27-aa4a-448d-979b-210323a150ac)

Could this be something related to the workflow still starting execution?

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.