Skip to content

requests and HTTPS connection gives an error #318

@zaufi

Description

@zaufi

Hi,

I'm trying to record a session with REST API of JFrog Artifactory. I use verified HTTPS session and everything is fine until I add a vcr.use_cassette decorator to my test. With decorator the test failed with multiple exceptions first of which is (reported by py.test):

>           raise RemoteDisconnected("Remote end closed connection without"
                                    " response")
E           http.client.RemoteDisconnected: Remote end closed connection without response

/usr/lib64/python3.5/http/client.py:266: RemoteDisconnected

During handling of the above exception, another exception occurred:

Also there is "strange" message appeared in stdout:

/usr/lib64/python3.5/site-packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)

... but I've used a verified connection in fact.

Any idea how to fix/avoid this? (I can provide any needed details)

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues and PRs that have had birthdays since last activity. Please feel free to reopen though!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions