Skip to content

RuntimeWarning about closing a session in an async mode #27

@ngseer

Description

@ngseer

I'm getting this warning when using session in an async mode:

/home/seer/.local/share/virtualenvs/pbJ32E1R/lib/python3.7/site-packages/jsonapi_client/session.py:288: RuntimeWarning: coroutine 'ClientSession.close' was never awaited
  self._aiohttp_session.close()

As it says, close() coroutine should be awaited somewhere to the session properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions