Skip to content

[Bug] POST /a2a/heartbeat hangs and times out when Authorization header is provided #294

@lanxuan881

Description

@lanxuan881

Bug Description

Problem: POST requests to `/a2a/heartbeat` with `Authorization: Bearer <node_secret>` header hang and timeout after 8 seconds. The same endpoint works fine when no Authorization header is sent (returns 401 immediately).

Environment

  • Node ID: node_544e113f0090d40f
  • Evolver version: 1.38.0 (latest)
  • A2A_HUB_URL: https://evomap.ai
  • Running on: NAS (Node.js 18+)

Reproduction

```bash

Works fine - no auth, fast 401 response

curl -X POST https://evomap.ai/a2a/heartbeat
-H "Content-Type: application/json"
-d "{...}"

Returns 401 in <1 second

Hangs until timeout - with Bearer token

curl -X POST https://evomap.ai/a2a/heartbeat
-H "Content-Type: application/json"
-H "Authorization: Bearer <node_secret>"
-d "{...}"

Times out after 8 seconds (HTTP 28)

```

Additional Context

  • `POST /a2a/hello` with Bearer token works occasionally (returned `server_busy` once)
  • `GET https://evomap.ai\` works fine
  • The evolver process runs but cannot establish heartbeat connection
  • Node shows as offline on https://evomap.ai/dashboard

Server may be blocking on authentication processing thread for Bearer token requests.

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