Announcement

Collapse
No announcement yet.

Alert emails not sending - how to troubleshoot?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Alert emails not sending - how to troubleshoot?

    Running MC 3.9.0 on Windows Server 2012 in AWS with Java v 1.8.0_181.

    I have an HTTP Sender with a transformer step that checks for an error in the response:

    Code:
    var error = '';
    
    try {
        error = msg['error'];
        if (error.length > 0) {
            responseStatus = ERROR;
            responseStatusMessage = error;
        }
    } catch(e) {
        //ignore
    }
    When the error occurs, the server sends a response like:

    Code:
    {
        "error" : "invalid_code"
    }
    However, this response comes with HTTP Status 200.

    I have configured email and am able to successfully send a test email from the Settings -> Server page.

    Screen Shot 2020-07-07 at 4.12.05 PM.png

    The alert is configured for any error on either of 2 channels.

    I deliberately caused an error to test the alert, but no email arrives. Other errors on other channels do trigger alert emails to send. Just not this error from this particular channel.

    Screen Shot 2020-07-07 at 4.23.26 PM.png

    The dashboard shows the ERROR status as does the message status.

    Is there something else I can do in the transformer that would trigger the alert?


    Is my alert not configured correctly? Any help appreciated.

    Last edited by countermind; 07-08-2020, 02:28 PM. Reason: More details about the error
Working...
X