Component
forge-core (registry, tools, security, channels, LLM)
Description
When attempting to use the agent, the following error is returned:
agent returned non-SSE response: {"error":"unauthorized","message":"valid bearer token required"}
Steps to reproduce
Start the agent / service
Trigger a request to the agent endpoint
Observe the response error
Expected behavior
The agent should establish a valid SSE (Server-Sent Events) connection and stream responses without authentication errors when properly configured.
Actual Behavior
Instead of establishing an SSE stream, the agent returns a non-SSE JSON response indicating an authorization failure:
Actual behavior
error: unauthorized
message: valid bearer token required
Operating system
Windows 11 (WSL: Ubuntu 22.04.5 LTS)
Go version
No response
forge.yaml (if relevant)
Logs / error output
agent returned non-SSE response: {"error":"unauthorized","message":"valid bearer token required"}