Skip to content

API Constantly tries to connect to workspace service even if its unavailable #2

@kalinon

Description

@kalinon

If no OPENCLAW_WORKSPACE_URL is provided, the api will still try to connect to the default endpoint. With 3 retries at 1s each, this makes evey request to /status take ~4 seconds.

{"timestamp":"2026-03-02T21:04:28.462Z","level":"INFO","message":"Checking OpenClaw workspace status","userId":"51036a98-eeb6-4bd1-9e67-1d4b002f9bc8"}
{"timestamp":"2026-03-02T21:04:28.463Z","level":"WARN","message":"OpenClaw workspace request failed, retrying","method":"GET","path":"/status","url":"http://openclaw-workspace.agents.svc.cluster.local:8080/status","retryCount":1,"maxRetries":3,"delayMs":500,"error":"fetch failed"}
{"timestamp":"2026-03-02T21:04:28.965Z","level":"WARN","message":"OpenClaw workspace request failed, retrying","method":"GET","path":"/status","url":"http://openclaw-workspace.agents.svc.cluster.local:8080/status","retryCount":2,"maxRetries":3,"delayMs":1000,"error":"fetch failed"}
{"timestamp":"2026-03-02T21:04:29.967Z","level":"WARN","message":"OpenClaw workspace request failed, retrying","method":"GET","path":"/status","url":"http://openclaw-workspace.agents.svc.cluster.local:8080/status","retryCount":3,"maxRetries":3,"delayMs":2000,"error":"fetch failed"}
{"timestamp":"2026-03-02T21:04:31.970Z","level":"WARN","message":"OpenClaw workspace service unavailable after retries","method":"GET","path":"/status","url":"http://openclaw-workspace.agents.svc.cluster.local:8080/status","retryCount":3,"hint":"Set OPENCLAW_WORKSPACE_URL to disable or conf
igure the service URL"}

If there is no workspace service available, all features that use it should be disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions