Skip to content

unhandled exceptions kill server #41

Open
@jaked

Description

e.g. this code in a cell

import * as Domain from "node:domain";

const d = Domain.create();
const p = d.run(async () => {
  throw new Error("test");
});

throws a server-killing exception, I think because the promise isn't awaited in the code path that handles exceptions. I think there's a top-level exception handler we need to set, and also we need to clean up the cell execution state.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      unhandled exceptions kill server · Issue #41 · githubnext/vitale