Graphman Client Throwing Validation Error
search cancel

Graphman Client Throwing Validation Error

book

Article ID: 386154

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

The Graphman node.js client is giving a bunch of validation errors on one of the API Gateways. Exports from two gateways running 11.0 CR03 are successful.

[warn] policy-as-code feature is not supported for the selected schema
[info] exporting from default gateway
[info] unexpected data {
  "errors": [
    {
      "message": "Validation error of type FieldUndefined: Field 'services' in type 'Query' is undefined @ 'services'",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    },

Environment

API Gateway 11.0 CR03, 11.1.1

Cause

On the non-working Gateway, there are multiple versions of Graphman. Remove the Graphman assertions that do not match the gateway version.

Resolution

Remove the extra Graphman assertions that do not match the gateway version.