[go: up one dir, main page]

Skip to content

Treat exception of header too long instead of exiting all ap.

Critical as when you are debugging drupals it will be header-verbose

:~$ check_ispconfig -c
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/aiohttp/client_reqrep.py", line 847, in start
    message, payload = await self._protocol.read()  # type: ignore  # noqa
  File "/usr/lib/python3/dist-packages/aiohttp/streams.py", line 591, in read
    await self._waiter
  File "/usr/lib/python3/dist-packages/aiohttp/client_proto.py", line 201, in data_received
    messages, upgraded, tail = self._parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data
  File "aiohttp/_http_parser.pyx", line 650, in aiohttp._http_parser.cb_on_header_value
aiohttp.http_exceptions.LineTooLong: 400, message='Got more than 8190 bytes (15851) when reading Header value is too long.'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/check_ispconfig", line 130, in <module>
    main()
  File "/usr/local/bin/check_ispconfig", line 98, in main
    results = loop.run_until_complete(asyncio.gather(*coroutines))
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/usr/local/bin/check_ispconfig", line 112, in get
    async with session.get(url) as response:
  File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 1012, in __aenter__
    self._resp = await self._coro
  File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 504, in _request
    await resp.start(conn)
  File "/usr/lib/python3/dist-packages/aiohttp/client_reqrep.py", line 849, in start
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Got more than 8190 bytes (15851) when reading Header value is too long.', url=URL('https://----.-----.---.org/ca')