Skip to content

Conversation

@qian-squareup
Copy link
Collaborator

What and Why

Update return code for db insert/update errors from the current 503 to 400.

Testing

{"writes":[],"error":{"message":"failed to insert entity (db err: write exception: write errors: [Document failed validation: {\"failingDocumentId\": {\"$oid\":\"684373427262043d854bfdf4\"},\"details\": {\"operatorName\": \"$jsonSchema\",\"schemaRulesNotSatisfied\": [{\"operatorName\": \"required\",\"specifiedAs\": {\"required\": [\"app\",\"aws_arn\",\"aws_account_id\",\"aws_region\",\"cache_node_id\",\"replication_group_aws_arn\"]},\"missingProperties\": [\"aws_arn\",\"aws_account_id\",\"aws_region\",\"cache_node_id\",\"replication_group_aws_arn\"]}]}}])","type":"db-insert-failed","entityId":"","httpStatus":400}}

@qian-squareup qian-squareup merged commit 6ec9d7d into master Jun 10, 2025
1 check passed
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.

4 participants