Skip to content

async request with verify_ssl=False does not work #510

Closed
@fsvenson

Description

@fsvenson

Describe the bug
The async httpx request methods do not expect the keyword argument verify. It shall be passed to the client, not the request method.

Traceback (most recent call last):
  File "test.py", line 47, in <module>
    loop.run_until_complete(main())
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "test.py", line 21, in main
    resp = await post_auth_login.asyncio(json_body=body, client=client)
  File "/dev/shm/env/lib64/python3.6/site-packages/construct_api_client/api/auth/post_auth_login.py", line 106, in asyncio
    json_body=json_body,
  File "/dev/shm/env/lib64/python3.6/site-packages/construct_api_client/api/auth/post_auth_login.py", line 91, in asyncio_detailed
    response = await _client.post(**kwargs)
TypeError: post() got an unexpected keyword argument 'verify'

To Reproduce
Call any asyncio() method with the client option verify_ssl=False.

Expected behavior
The call should pass without a TypeError..

Desktop (please complete the following information):

  • OS: CentOS 7.6
  • Python Version: 3.6.8
  • openapi-python-client version: 0.10.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions