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

Handle incorrect chunked encoding in Direct Edit's upload queue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.4
    • Component/s: Direct Edit

      Description

      Issue

      Sentry Issue: NUXEO-DRIVE-1RR

      ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
      (5 additional frame(s) were not displayed)
      ...
        File "site-packages/nuxeo/client.py", line 197, in request
        File "site-packages/nuxeo/client.py", line 288, in _handle_error
        File "site-packages/requests/models.py", line 880, in json
        File "site-packages/requests/models.py", line 828, in content
        File "site-packages/requests/models.py", line 753, in generate
      
      ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
        File "site-packages/requests/models.py", line 750, in generate
        File "site-packages/urllib3/response.py", line 490, in stream
        File "site-packages/urllib3/response.py", line 694, in read_chunked
        File "contextlib.py", line 99, in __exit__
        File "site-packages/urllib3/response.py", line 378, in _error_catcher
      
      IncompleteRead: IncompleteRead(0 bytes read)
        File "site-packages/urllib3/response.py", line 360, in _error_catcher
        File "site-packages/urllib3/response.py", line 666, in read_chunked
        File "site-packages/urllib3/response.py", line 605, in _update_chunk_length
      
      ValueError: invalid literal for int() with base 16: b''
        File "site-packages/urllib3/response.py", line 601, in _update_chunk_length
      
      HTTPError: 500 Server Error:  for url: https://SERVER/nuxeo/site/automation/Document.Fetch
        File "site-packages/nuxeo/client.py", line 194, in request
        File "site-packages/requests/models.py", line 940, in raise_for_status
      
      DirectEdit unhandled error for ref PosixPath('DOCUID_file-content/Document.docx')
      

      The error is infinite while Drive is trying to handle the upload queue (Direct Edit).
      We should just skip the file for now.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1 hour
                1h