Closed
Description
We put the error.message in Run failed alert email subjects:
If the error.message has a newline in it email APIs reject it and we end up with this error in the queue we use to send them:
{"visibilityTimeoutMs":60000,"item":{"alertId":"cmxxxxxxxxxxxxxxx"},"attempt":2,"errorMessage":"The `\\n` is not allowed in the `subject` field.","job":"v3.deliverAlert"}
It will try again multiple times but ultimately fail because the subject will always be invalid.
Solution
We need to strip out investigate what characters are invalid and then strip them all out of email subjects. It would probably be best to do this at a level in the code where future developers won't have to think about this problem.
My recommendation is to do the string replacements on the subject
here:
Metadata
Metadata
Assignees
Labels
No labels