Skip to content
\n

We depend on the latest pre-release of openapi-core, https://github.com/python-openapi/openapi-core/releases/tag/0.19.0a1.

\n

The error message leads me to believe that openapi-core is raising a ServerNotFound exception from BasePathFinder.find (here), which is called from BaseAPICallValidator._find_path (here).

\n

I have a couple of questions:

\n","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

HI @jtherrmann

\n

the error \"Server not found for https://vd2gh6uqw3.execute-api.us-west-2.amazonaws.com/api/user\" means your OpenAPI specification doesn't define server that match url from your request.

\n
\n

Is BaseAPICallValidator for validating requests, responses, or both?

\n
\n

It's a base class for request and response validation

\n
\n

Why does the validator need to validate the server URL?

\n
\n

Server is part of OpneAPI specification

\n
\n

What exactly does APICallPathFinder._get_servers_iter do?

\n
\n

Finds valid server definition in your specification

\n
\n

What is the fundamental meaning of a ServerNotFound exception?

\n
\n

ServerNotFound exception is raised when your request server does not match any defined servers in your specification.

","upvoteCount":2,"url":"https://github.com/python-openapi/openapi-core/discussions/757#discussioncomment-8092412"}}}
Discussion options

You must be logged in to vote

HI @jtherrmann

the error "Server not found for https://vd2gh6uqw3.execute-api.us-west-2.amazonaws.com/api/user" means your OpenAPI specification doesn't define server that match url from your request.

Is BaseAPICallValidator for validating requests, responses, or both?

It's a base class for request and response validation

Why does the validator need to validate the server URL?

Server is part of OpneAPI specification

What exactly does APICallPathFinder._get_servers_iter do?

Finds valid server definition in your specification

What is the fundamental meaning of a ServerNotFound exception?

ServerNotFound exception is raised when your request server does not match any defined servers i…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jtherrmann
Comment options

@jtherrmann
Comment options

@p1c2u
Comment options

@jtherrmann
Comment options

Answer selected by jtherrmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants