Uploaded image for project: 'Nuxeo Python Client'
  1. Nuxeo Python Client
  2. NXPY-177

Prevent AttributeError when fetching the server version and the response is bad

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.4
    • Fix Version/s: 3.0.0
    • Component/s: Core

      Description

      Issue

      Sentry Issue: NUXEO-DRIVE-3MA

      AttributeError: 'NoneType' object has no attribute 'get'
        File "nxdrive\engine\workers.py", line 181, in run
        File "nxdrive\engine\workers.py", line 273, in _execute
        File "nxdrive\engine\tracker.py", line 211, in _poll
        File "nxdrive\engine\tracker.py", line 206, in send_stats
        File "nxdrive\engine\tracker.py", line 134, in send_event
        File "lib\site-packages\nuxeo\client.py", line 382, in server_version
      
      Thread EXCEPTION
      

      Fix

      Catch the error and returns the string "unknown".

        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 - 1 hour, 15 minutes
                  1h 15m