Error: F_JG231B/F_JG290D: Received Status Code 400
Issue
While sending an alert from HVR to an SNS topic, the alert fails with the following errors:
F_JG231B: Operating System command failed with exit code 1.F_JX0025: httpreq command failed with exit-code 1 and error.F_JG290D: Received status code 400 (Bad Request).F_JG0602: The previous error occurred while invoking URL 'sns://…' with method 'POST', custom headers 'Content-Type: application/x-www-form-urlencoded', and a payload containing Action=Publish & TopicArn=… .fifo & Message=…F_JG0557: The previous error occurred during request POST.
Environment
- HVR versions earlier than 6.2.5/9
- Alerts configured to use an AWS SNS FIFO topic with an ARN that ends in
.fifo.
Resolution
To resolve this issue:
- Create a new standard SNS topic with an ARN that does not end with
.fifo. - Update the HVR alert configuration to use the new topic.
- Send a test alert to confirm successful delivery.
Alternatively, upgrade HVR to version 6.2.5/9 or later, then re-run the test alert.
Cause
AWS SNS FIFO topics require the following parameters for every publish request:
- MessageGroupId
- MessageDeduplicationId
HVR versions earlier than 6.2.5/9 do not include these parameters when sending alerts to FIFO topics. As a result, SNS rejects the request with an error.
HVR version 6.2.5/9 and later adds support for SNS FIFO topics. In these versions, hvralert automatically includes the required parameters.