leandcesar / themoviedb

A modern and easy to use API wrapper for The Movie Database (TMDb) API v3 written in Python.
https://pypi.org/project/themoviedb
MIT License
25 stars 7 forks source link

Many unclosed client session/connector errors #2

Closed fish-face closed 1 year ago

fish-face commented 1 year ago

The library instantiates a session for you, but I guess doesn't close it. If you make many requests your terminal will be spammed with these errors:

2023-01-02 19:45:42,721 ERROR (asyncio): Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f5462704450>
2023-01-02 19:45:42,722 ERROR (asyncio): Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f544a7f5e10>, 300713.727671935)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f5462704490>
leandcesar commented 1 year ago

The library was rewritten, fixing several errors: themoviedb