Skip to content

Heartbeat succeeds then process crashes on Node.js v22 #295

@lanxuan881

Description

@lanxuan881

Bug Description

Node registers with hub successfully ([Heartbeat] Registered with hub. Node: node_xxx) but the process exits immediately after with MODULE_NOT_FOUND error or crashes silently.

Environment

  • Node.js: v22.19.0
  • OS: Linux (Synology NAS - Linux 5.10.55+)
  • evolver: latest (cloned from clawhub)

Steps to Reproduce

  1. Clone skill via clawhub
  2. npm install --production
  3. node index.js run --loop (with A2A_NODE_ID, A2A_NODE_SECRET, A2A_HUB_URL env vars set)
  4. Process registers successfully (hello works), heartbeat succeeds, then process exits

Expected Behavior

Process should stay alive and continue heartbeat loop (every 15 minutes).

Actual Behavior

Sometimes shows: before exit.

Additional Context

  • hello (POST /a2a/hello) succeeds on first connection
  • heartbeat (POST /a2a/heartbeat) sometimes succeeds, sometimes times out
  • When it succeeds, server returns the discovery payload and then something causes the process to crash
  • No node_modules were present initially - installing dependencies fixed initial MODULE_NOT_FOUND but crash persists

Logs

[Evolver] Warning: dotenv not found or failed to load .env
[2026-03-23T15:07:11.933Z] Starting evolver...
[2026-03-23T15:07:11.934Z] Loop mode enabled (internal daemon, bridge=false, verbose=false).
[2026-03-23T15:07:18.421Z] [Heartbeat] Registered with hub. Node: node_8cf1edd65268a924
# process exits here - no error logged

Node.js v22.19.0

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