Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot create SwaggerClient from https URL #443

Closed
williehallock802 opened this issue Nov 18, 2019 · 1 comment
Closed

cannot create SwaggerClient from https URL #443

williehallock802 opened this issue Nov 18, 2019 · 1 comment

Comments

@williehallock802
Copy link

The error I am getting is:

HTTPSConnectionPool(host='10.10.8.142', port=8088): Max retries exceeded with url: /v2/api-docs (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)'),))

Now, I assume this is because I need to find a way to pass along the certificate needed to authenticate with the https server, but I am not sure how to do that with Bravado and my google searches haven't turn up anything.

@sjaensch
Copy link
Contributor

I assume you're using the default HTTP client. In that case pass a RequestsClient instance when you create your SwaggerClient, and either disable SSL verification or provide the certificate. You can find more information in the documentation,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants