Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1526

Follow up resolution of urllib3 logging.warning HeaderParsingError

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.1.4
    • Component/s: Remote client
    • Environment:
      GNU/Linux
    • Story Points:
      0

      Description

      Happing on GNU/Linux for what we know, this warning may flood logs:

      2019-01-28 14:38:26 8146 140031268210432 WARNING  urllib3.connectionpool Failed to parse headers (url=https://nuxeo-app-prod...): [NoBoundaryInMultipartDefect(), MultipartInvariantViolationDefect()], unparseddata: ''
      Traceback (most recent call last):
        File "python3.6/site-packages/urllib3/connectionpool.py", line 396, in _make_request
          assert_header_parsing(httplib_response.msg)
        File "python3.6/site-packages/urllib3/util/response.py", line 66, in assert_header_parsing
          raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)
      urllib3.exceptions.HeaderParsingError: [NoBoundaryInMultipartDefect(), MultipartInvariantViolationDefect()], unparsed data: ''
      

      This is not an issue, just a log line too verbose in a too high level. There is a potential fix on the Drive side:

      logging.getLogger("urllib3").setLevel(logging.ERROR)
      

      But we better wait for the resolution at the root: urllib3, issue #800.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mschoentgen Mickaël Schoentgen
                Reporter:
                mschoentgen Mickaël Schoentgen
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 minutes
                  5m