In case it helps someone to save a couple of hours solving this error, when you try to send a json array using jinja in pipelines.
Error:
Something went wrong executing a step. Try modifying your pipeline.
Body:
{"payments":
[{% for r in a%}
{"value":"{{r.vto}}"},
{% endfor %}
]}
Valid:
{"payments":
[{% for r in a%}
{"value":"{{r.vto}}"}{% if not loop.last %},{% endif %}
{% endfor %}
]}
Reference: https://rogerpence.dev/omitting-the-last-comma-in-a-series-in-a-jinja-template/
------------------------------
Diretoria Mirantes
------------------------------
Sign up
Already have an account? Login
Login to the community
Login with Quickbase US – quickbase.com Login with Quickbase EU – quickbase.eu
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.