Rabbitmq Backup Failed – TimedOut

i tried to use python script that will do get request to fetch definitions from  /api/definitions and error logs clearly stated it get timed out at server end

Error logs:

Traceback (most recent call last):
  File “backup.py”, line 15, in <module>
  File “/usr/lib/python3.8/asyncio/runners.py”, line 44, in run
    return loop.run_until_complete(main)
  File “/usr/lib/python3.8/asyncio/base_events.py”, line 616, in run_until_complete
    return future.result()
  File “backup.py”, line 11, in main
    async with session.get(pokemon_url,  ssl=False) as resp:
  File “/home/ironfist/python-rmq_backup/venv/lib/python3.8/site-packages/aiohttp/client.py”, line 1138, in __aenter__
    self._resp = await self._coro
  File “/home/ironfist/python-rmq_backup/venv/lib/python3.8/site-packages/aiohttp/client.py”, line 559, in _request
    await resp.start(conn)
  File “/home/ironfist/python-rmq_backup/venv/lib/python3.8/site-packages/aiohttp/client_reqrep.py”, line 898, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
  File “/home/ironfist/python-rmq_backup/venv/lib/python3.8/site-packages/aiohttp/streams.py”, line 616, in read
    await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected

Read more here: Source link