Hello NVIDIA Omniverse Support Team,
I am currently integrating external AI agents into our multi-agent pipeline extension within Omniverse Kit SDK 107.2. Specifically, we attempted integrating ChatGPT-4.5 via Bing and Google AI services using Selenium WebDriver automation (Edge and Chrome browsers respectively). While we’ve had significant progress outside Omniverse, we’re encountering persistent issues within Omniverse when connecting through WebSockets.
Environment Setup & Context:
Omniverse Kit Version: 107.2 RC (Black Box environment updated)
System Configuration: Windows 11, Python 3.11 (via Anaconda), Selenium WebDriver latest stable release.
Browsers & Drivers:
Microsoft Edge with EdgeDriver (msedgedriver.exe)
Google Chrome with ChromeDriver
Handler Structure:
AI agents initiated externally via Selenium automation scripts.
Communication established via WebSocket on local network (127.0.0.1 or localhost).
Problem Summary:
We successfully automated and established stable WebSocket connections externally (outside Omniverse environment) using both Bing (Edge) and Google (Chrome) agents. After comprehensive external tests confirmed proper WebSocket connectivity, message sending, and receiving, we proceeded to integrate these agents into our Omniverse extension handlers.
However, upon integration into Omniverse Kit SDK 107.2, we encountered persistent WebSocket connectivity failures, preventing the agents from communicating effectively with the Omniverse extension. Despite numerous attempts, adjustments, and tests, the issue remained unresolved within Omniverse.
Steps Taken for Troubleshooting:
WebSocket External Validation:
Successfully tested connections externally via Python Selenium scripts.
Confirmed active and stable WebSocket connections to both Bing and Google AI endpoints.
Validated message payload sending and response receipt.
Firewall & Network Configurations:
Explicitly allowed WebSocket ports through Windows Firewall.
Tested connectivity via PowerShell/WebSocket test tools (outside Omniverse successfully).
Omniverse Environment Adjustments:
Used Omniverse’s built-in Python (pipapi) to install Selenium correctly.
Ensured Selenium WebDriver binary (msedgedriver.exe and ChromeDriver) paths explicitly defined and verified.
Confirmed no conflicting Omniverse extensions or scripts.
Debugging & Error Analysis within Omniverse:
Omniverse logs repeatedly indicated timeouts and connection refusals specifically when WebSocket connections were attempted.
Verified no resource contention or port conflicts within Omniverse’s runtime.
Persistent Error Description (Typical):
plaintext
Copy code
[Error] [omni.kit.websocket] Failed to establish WebSocket connection to ws://localhost:[port]: Connection refused.
This error consistently occurs only within the Omniverse environment. No errors or issues occur during external tests with identical parameters.
Specific Questions & Assistance Needed:
Are there known limitations or special requirements when establishing local WebSocket connections (via Selenium WebDriver automation scripts) within Omniverse Kit SDK 107.2?
Could there be any known conflicts or network restrictions specifically applied by Omniverse’s internal environment or extensions that we should explicitly configure or bypass?
Is there a recommended approach for debugging such WebSocket connectivity issues in Omniverse SDK environments, especially when external validations confirm successful connectivity?
Additional Notes:
Extensive logs and configurations can be provided upon request for deeper debugging.
We have explicitly followed NVIDIA’s recommended best practices for handler and script development within Omniverse Kit SDK 107.2.
Thank you very much for your support and guidance. We are eager to resolve this integration issue, as successful connectivity is critical for our project’s progress and stability.
Warm regards,
Chris Wirth
Creative Lab / Multi-Agent Pipeline Development