UiPath Documentation
autopilot
latest
false
Autopilot-Benutzerhandbuch
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

Troubleshooting Autopilot

Solutions for common Autopilot issues, including a blank chat view in the VS Code extension caused by a service worker registration error.

VS Code-Erweiterung​

The Autopilot chat view is blank​

The Autopilot chat view opens, but it is blank and the message box is missing. Reinstalling the extension or switching to a new VS Code profile does not resolve it.

The Webview Developer Tools show the following error:

Webview fatal error: Error: Could not register service worker:
InvalidStateError: Failed to register a ServiceWorker:
The document is in an invalid state.
Error loading webview provided by 'UiPath.autopilot-vscode':
Error: Could not register service worker: InvalidStateError:
Failed to register a ServiceWorker: The document is in an invalid state.
Webview fatal error: Error: Could not register service worker:
InvalidStateError: Failed to register a ServiceWorker:
The document is in an invalid state.
Error loading webview provided by 'UiPath.autopilot-vscode':
Error: Could not register service worker: InvalidStateError:
Failed to register a ServiceWorker: The document is in an invalid state.

Cause: VS Code cannot start the panel that the Autopilot chat runs in, so the chat never loads. Panels from other extensions, such as Markdown preview, fail the same way until the cache is cleared. This is a known VS Code issue. For details, refer to microsoft/vscode#125993.

Solution: Clear the VS Code service worker cache:

  1. Close VS Code fully. On Windows, select File > Exit, then end any remaining Code.exe processes in Task Manager.

  2. Delete the Service Worker folder for your operating system. The folder contains only cached data.

    BetriebssystemOrdner
    Windows%APPDATA%\Code\Service Worker
    macOS~/Library/Application Support/Code/Service Worker
    Linux~/.config/Code/Service Worker

    For VS Code Insiders, use the same paths with Code - Insiders instead of Code.

  3. Start VS Code and open Autopilot.

  • VS Code-Erweiterung​
  • The Autopilot chat view is blank​

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben