UiPath Documentation
autopilot
latest
false
Autopilot user guide

Troubleshooting Autopilot

Solutions for common Autopilot issues, including a blank chat view in the VS Code extension and Gemini model configurations that fail in Automation Suite 2025.10.

VS Code extension​

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.

    Operating systemFolder
    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.

Bring your own model​

A Gemini model configuration fails in Automation Suite 2025.10​

When you add an AI Trust Layer LLM configuration for Autopilot with a Gemini model, such as gemini-3.1-pro-preview, the configuration test fails and you cannot save the configuration. The error message is similar to the following:

/v1/projects/<your-project-id>/locations/global/publishers/google/models/gemini-3.1-pro-preview:generateContent was not found on this server.
/v1/projects/<your-project-id>/locations/global/publishers/google/models/gemini-3.1-pro-preview:generateContent was not found on this server.

Cause: Some Gemini 3.x models are served only from the Google Cloud global location. The Google Vertex connector in Integration Service for Automation Suite 2025.10 does not support the global location. This affects configurations for both the Chat and Generation features.

Solution: Create a custom Google Vertex AI connector that calls the global location, then use it in your LLM configuration:

  1. In Integration Service, select Build your connector to create a custom Google Vertex AI connector. For details, refer to Building your first connector.

  2. In Connector Builder, set the base URL of the connector to the global location:

    https://aiplatform.googleapis.com/v1/projects/{project.id}/locations/global/publishers/google
    https://aiplatform.googleapis.com/v1/projects/{project.id}/locations/global/publishers/google
    
  3. Save and publish the connector.

  4. Create a connection for the connector. Provide your Google Cloud project ID and your service account key in JSON format.

  5. In your AI Trust Layer LLM configuration, select the custom connector and the connection.

  6. Set the ID of the Gemini model you need.

  • VS Code extension​
  • The Autopilot chat view is blank​
  • Bring your own model​
  • A Gemini model configuration fails in Automation Suite 2025.10​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated