Skip to content

runtime: store failures are logged as [object ErrorEvent] with no cause #689

Closed

Description

@blove

Problem

Store failures are opaque. An unreachable Postgres (via @neondatabase/serverless WebSocket) surfaces as:

B4.run runtime failure — [object ErrorEvent]

and a generic 500. The underlying WebSocket / Postgres error (host, code, message) is not logged, so the only way to diagnose was to reproduce locally.

Proposal

  • Serialise ErrorEvent/Error causes properly in the runtime failure log (message, code, cause).
  • Log store initialisation failures once with the store kind and the sanitised connection target (host/db, never credentials).

Related: #688.

Activity

  1. added
    bug
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions