autogen icon indicating copy to clipboard operation
autogen copied to clipboard

WebSocket connection to 'ws://localhost:8081/api/ws/runs/59?token=null' failed:

Open sedatepace opened this issue 5 months ago • 2 comments

What happened?

Describe the bug

When I run the default test from the Deep Research gallery in Autogen Studio, I get a WebSocket connection error in the browser console. The error message indicates that the token parameter is null, which seems to prevent the WebSocket from establishing a connection.

Error message:

To Reproduce Steps to reproduce the behavior:

  1. Start Autogen Studio on localhost:8081
  2. Go to Team Builder → click From Gallery
  3. Select Deep Research Team and click Copy
  4. In the copied team, click Run
  5. A chat window appears with the default input: What is the capital of France?
  6. As soon as the chat starts, a WebSocket error occurs

Observed:

  • WebSocket connection fails with token=null

Expected behavior The default test should run without any WebSocket connection issues, and the connection should include a valid token.

Screenshots

  • Environment: localhost:8081
  • Browser: Chrome [insert version]
  • OS: [insert OS]
  • Autogen Studio version: [insert version]
Image

Which packages was the bug in?

Python AgentChat (autogen-agentchat>=0.4.0)

AutoGen library version.

Python dev (main branch)

Other library version.

No response

Model used

No response

Model provider

None

Other model provider

No response

Python version

Other (please note we only support Python 3.10+)

.NET version

None

Operating system

Windows

sedatepace avatar Jul 29 '25 04:07 sedatepace

Hi @sedatepace ,

Do you see the issue with other teams or just the deep research team? Note that a token only matters is you have set up auth (a null token is fine if auth is not setup).

The error suggests there are issues connecting to the websocket. Do you see any errors on the command line?

victordibia avatar Jul 29 '25 08:07 victordibia

That's how every team gallery is doing.

This is the case for newly downloaded autostudio.

My PC is Windows 11 Home (24H2).

sedatepace avatar Aug 01 '25 02:08 sedatepace