Repository navigation
Guides HTTP Workflows Tutorial doesn't work - here is how to fix it. #7351
Replies: 2 comments
|
Thanks for writing this up. The correction makes sense. On the runtime side,
There is also a sample workflow in
I couldn't find the exact tutorial source text in the current |
|
Closing this as answered. The correction on the Liquid expression and the If the guide source is still current, a docs PR with the exact tutorial corrections would be welcome. |
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to create the HTTP workflow from the tutorial and found errors:
{{ Variables.QueryData.status ?? "all" }} | Liquid.
This is wrong. Should be:
{{ Variables.QueryData.status | default: "all" }}
?? is JS syntax.
First of all Task in JS is task (lowercase) so it should be:
variables.Tasks
But it still desn't work becasue it tries to serialize the .net types which are unknown so it throws the exception:
System.ArgumentException, System.Private.CoreLib: Object of type '<>f__AnonymousType0#4
4[System.Int32,System.String,System.String,System.String][]' cannot be converted to type 'System.Collections.Generic.IEnumerable1[System.Int32]'.The solution is to set content to
variables.Tasks
and syntax to Variable. Then it works.
All reactions