[GCP] While using search API the query is not returning consistent results across different cloud platforms
While using POST method of Search API the query (https://{{SEARCH_HOST}}/query) is not returning consistent message across different cloud platforms and also not matching the documentation. While performing following queries A02 Search - Queries using the input request criteria with invalid parameters https://{{SEARCH_HOST}}/query B02 Search - Queries using the input request criteria with invalid parameters https://{{SEARCH_HOST}}/query_with_cursor
The response we get back from various cloud platforms are not exactly same On GCP cloud platform we get { "code": 400, "reason": "Bad Request", "message": "JSON parse error: Unrecognized field "queryinvalid" (class org.opengroup.osdu.core.common.model.search.QueryRequest), not marked as ignorable; nested exception is com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "queryinvalid" (class org.opengroup.osdu.core.common.model.search.QueryRequest), not marked as ignorable (9 known properties: "offset", "kind", "aggregateBy", "query", "queryAsOwner", "limit", "spatialFilter", "sort", "returnedFields"])_ at [Source: (PushbackInputStream); line: 4, column: 21] (through reference chain: org.opengroup.osdu.core.common.model.search.QueryRequest["queryinvalid"])" }
On AWS cloud platform we get { "code": 400, "reason": "Bad Request", "message": "Invalid parameters were given on search request" }
On Azure cloud platform we get { "code": 400, "reason": "Bad Request", "message": "Invalid parameters were given on search request" }
The question is why on GCP we are getting different message?
Looking at the documentation, I think we should get "Invalid parameters were given on request" in the message and We do not see that on any platform 400 Invalid parameters were given on request. Example Value Model { "code": 0, "reason": "string", "message": "string" }
Postman collection that was used during reporting this