Server should not crash when an invalid event is applied on the server

Open
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
backend

Research direction

Start with apps/server/src/handlers/applySpaceEvent.ts at line 29 and trace how an InvalidEventError reaches the handler. Done means applying an invalid event no longer crashes the server; the issue provides no test file or expected handling beyond that behavior.

Written by the indexing model from the issue text.

Description

bug Improved Sync
Failed to apply event {
  _id: 'Exit',
  _tag: 'Failure',
  cause: {
    _id: 'Cause',
    _tag: 'Fail',
    failure: InvalidEventError { _tag: 'InvalidEventError' }
  }
}
file:///Users/nikgraf/projects/graph-framework/graph-framework/apps/server/src/handlers/applySpaceEvent.ts:29
            throw new Error('Invalid event');
                  ^

Error: Invalid event
Dominant language
TypeScript
Stars
22
Forks
12
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from graphprotocol/hypergraph

All issues in graphprotocol/hypergraph

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.