The error message 'KeyError: key not found: "endpoint"' is displayed when importing a Swagger/OAS spec using the Red Hat 3scale toolbox

Solution Verified - Updated -

Issue

I have a Swagger/OpenAPI .json file that I wish to import. I am running the following command:

$ 3scale import openapi -d <INSTANCE> --staging-public-base-url=https://<STAGING URL> -t <SYSTEM NAME> /path/to/spec.json

All appears to be going well except at the end when an error is reported:

...
KeyError: key not found: "endpoint"
...

Environment

  • Red Hat 3scale API Management
    • SaaS
    • 2.X On-premises

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content