Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: test if Notify Slack log message JSON is valid #838

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

patheard
Copy link
Member

@patheard patheard commented Sep 18, 2024

Summary

Update the notify-slack lambda function to check if the parsed JSON is actually a JSON object.

This will eliminate the Slack messages we see where the expected log message format cannot be parsed:

image

Related

Update the `notify-slack` lambda function to check if the parsed JSON
is actually a JSON object.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for commenting, I worked on that file.

Good catch! I'd suggest removing the comment on line 123, as it's now misleading. This isn't solely related to the forms app anymore, and the error, wherever it occurs, isn't necessarily unhandled, in my opinion.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! I've updated the comment to be more generic.

@patheard patheard merged commit 2878a0d into develop Sep 19, 2024
8 checks passed
@patheard patheard deleted the fix/notify-slack-is-json branch September 19, 2024 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants