Skip to content

[Bug]: Getting this error: agent returned non-SSE response: {"error":"unauthorized","message":"valid bearer token required"} #37

@lalitr091

Description

@lalitr091

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"}

Image

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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions