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

Handle unauthorized error when adding the top-level sync root

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 5.2.3
    • Component/s: Remote client

      Description

      HTTPError: 401 Client Error:  for url: https://HOST/nuxeo/site/automation
        File "nuxeo\client.py", line 290, in request
        File "requests\models.py", line 943, in raise_for_status
      
      Unauthorized: Unauthorized(401), error: b'<!doctype html><html lang="en"><head><title>HTTP Status 401 \xe2\x80\x93 Unauthorized</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 401 \xe2\x80\x93 Unauthorized</h1></body></html>', server trace: None
        File "nxdrive\manager.py", line 418, in start_engines
        File "nxdrive\engine\engine.py", line 1091, in start
        File "nxdrive\engine\engine.py", line 1368, in _check_root
        File "nxdrive\engine\engine.py", line 1410, in _add_top_level_state
        File "nuxeo\client.py", line 464, in can_use
        File "nuxeo\operations.py", line 79, in operations
        File "nuxeo\operations.py", line 60, in get
        File "nuxeo\endpoint.py", line 74, in get
        File "nuxeo\client.py", line 293, in request
      

      Expected Behavior

      Drive should catch the appropriate error and set invalid credentials at the account level.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 20 minutes
                  20m