conductor-oss / conductor-oss/python-sdk

Get AuthorizationException when trying to update variables of a started workflow

Aperta
#248 3 commenti 0 reazioni 1 assegnatario Rivendicata da @IgorChvyrov-sm Vedi su GitHub
bug
Lingua principale
Python
Stelle
104
Fork
42
Merge medio
2g 1h
PR unite (30g)
3

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.