EOSIO / EOSIO/demux-js

BaseActionWatcher.watch should provide a way to handle error

Open
#181 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
298
Forks
69
PR merge metrics
No merged PRs in 30d

Description

Currently method `BaseActionWatcher.watch` catches errors in an internal `try/catch` block and silently swallow the errors. It stops watching on any error without providing any chance to retry. It returns `undefined` in all cases :O, and all state properties are private so there's no way to handle errors from derived classes.

Contributor guide

Open the contributing guide

Research direction

Start at the BaseActionWatcher.watch entry point and inspect its internal try/catch plus the private state properties mentioned in the issue. Define how errors should be exposed to derived classes and how retry behavior should work; done means errors are no longer silently swallowed and watching can be handled or retried.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.