Skip to content

Conversation

@turt2live
Copy link
Contributor

Summary

image

This is very much not intended to be a complete solution, but rather a step towards "better".

Test Plan

  1. Attempt to create an exchange (in the UI) which requires config values, but don't specify them.
  2. Receive error stating there's missing fields.

@meta-cla meta-cla bot added the CLA Signed label Dec 14, 2025
@github-actions github-actions bot added the hma Items related to the hasher-matcher-actioner system label Dec 14, 2025
@turt2live
Copy link
Contributor Author

The type check error appears unrelated to my changes.

abort(
400,
"Failed to parse `api_json` - did you provide all the fields needed for your api cls?",
f"Failed to parse `api_json` - verify all fields are supplied. {str(e)}",
Copy link
Contributor

Choose a reason for hiding this comment

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

You aren't guaranteed that missing key is the reason you got an exception, recommend not including that bit

Suggested change
f"Failed to parse `api_json` - verify all fields are supplied. {str(e)}",
f"Failed to parse `api_json`: {str(e)}",

@Dcallies Dcallies merged commit 4a26c93 into facebook:main Dec 15, 2025
4 of 5 checks passed
@turt2live turt2live deleted the travis/hma-error branch December 15, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed hma Items related to the hasher-matcher-actioner system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants