We’re using the API to pass the results of a Google Form into asana tasks for follow up, and I just encountered an issue where a co-worker pasted the error message from another application into the form field that ends up being passed to asana as html_description
. This text contained a tag (<anonymous>
) that asana rejected with the message:
{"errors":[{"error":"reasoned_xml_parsing_error","message":"XML is invalid,Unexpected tag ANONYMOUS","help":"For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"}]}
According to the asana API docs, I “must provide similarly structured, valid XML.”; however, I can’t guarantee it in all circumstances. Is there a way for me to escape, process, or otherwise handle the data I pass to this field to solve this issue?
Thanks!