media-io/ex_step_flow

Token not found in the store

Closed this issue · 1 comments

When I write in a workflow that :

{
  "id": "accesstoken",
  "type": "template",
  "store": "BACKEND",
  "value": "{provider}_TOKEN"
}

The message sent in the worker queue don't take the "store" attribute :

{
  "id":"accesstoken",
  "type":"string",
  "value":"SPEECHMATICS_TOKEN"
}

It should be this message instead :

{
  "id": "accesstoken",
  "store":"BACKEND",
  "type":"string",
  "value":"SPEECHMATICS_TOKEN"
}

Thus, the token value is not found in the store because of this missing "store" attribute.

Solution is to re-add store here
Better solution is to change type (from template) to string
update value to the computed value

Do same thing here