Describe the bug
I expect a POST request with the body below should be sent after my workflow failed.
{"errorMessage": "{{workflow.errorMessage}}"}
However, an illegal JSON body below was sent. It seems that the quotation marks are not escaped correctly.
{"errorMessage": "Unexpected token \'<\', "<!doctype "... is not valid JSON"}
To Reproduce
Steps to reproduce the behavior:
Create a workflow that will error. For example, send an HTTP request that expects the response to be JSON but the actual response is HTML.
Make the workflow send a POST request with the body below after it fails.
{"errorMessage": "{{workflow.errorMessage}}"}
An illegal JSON body below was sent.
{"errorMessage": "Unexpected token \'<\', "<!doctype "... is not valid JSON"}
Expected behavior
A legal JSON body with correctly escaped quotation marks should be sent.
{"errorMessage": "Unexpected token \'<\', \"<!doctype \"... is not valid JSON"}
Screenshots
Expect:
Actual:
Desktop (please complete the following information):
Describe the bug I expect a POST request with the body below should be sent after my workflow failed.
{"errorMessage": "{{workflow.errorMessage}}"}
However, an illegal JSON body below was sent. It seems that the quotation marks are not escaped correctly.
{"errorMessage": "Unexpected token \'<\', "<!doctype "... is not valid JSON"}
To Reproduce Steps to reproduce the behavior:
{"errorMessage": "{{workflow.errorMessage}}"}
{"errorMessage": "Unexpected token \'<\', "<!doctype "... is not valid JSON"}
Expected behavior A legal JSON body with correctly escaped quotation marks should be sent.
{"errorMessage": "Unexpected token \'<\', \"<!doctype \"... is not valid JSON"}
Screenshots Expect: Actual:
Desktop (please complete the following information):
Additional context No additional context