How to fix httpx.ClosedPoolError: Connection pool is closed in Python | DevErrors