[MONGOCRYPT-306] Error messages not returned in 503 replies Created: 27/Jan/21  Updated: 28/Oct/23  Resolved: 02/Aug/22

Status: Closed
Project: Libmongocrypt
Component/s: C library
Affects Version/s: None
Fix Version/s: 1.6.0, 1.6.0-alpha0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-3360 Sporadic tests failures: Error in KMS... Backlog
is related to PYTHON-3384 CSFLE test failure on Windows: Error ... Closed

 Description   

As discovered in CSHARP-3360, 503 errors from GCP are parsing a JSON reply, but not finding an error message, resulting in an empty string for the message (and 0 code):

Error in KMS response '', code: '0'. HTTP status=503



 Comments   
Comment by Githook User [ 02/Aug/22 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: MONGOCRYPT-306 Return HTTP body in KMS error replies (#422)

  • support array for "expect" in kms-tests.json
  • support testing non-oauth requests

add gcp_datakey, gcp_decrypt, azure_datakey, and azure_decrypt.
add failing test.

  • include HTTP response body for JSON parsing error
  • consolidate handling of non-200 HTTP status
Generated at Thu Feb 08 09:08:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.