web3j icon indicating copy to clipboard operation
web3j copied to clipboard

log filter not work, case: on reinstallFilter() called, if getInitialFilterLogs() throw Exception, schedule is Cancelled on reinstallFilter.

Open chenxiaodai opened this issue 2 years ago • 1 comments

https://github.com/web3j/web3j/blob/4b583dd0f701334be1f18abc925eff4dcb9c3e52/core/src/main/java/org/web3j/protocol/core/filters/Filter.java#L72

My temporary modification plan

  1. filter add subscriber::onError.
  2. when org.web3j.protocol.core.filters.Filter#run call by reinstallFilter(). call subscriber::onError.
  3. Use layers subscribe (throwable), on error resubscribe

chenxiaodai avatar Jan 02 '24 03:01 chenxiaodai

Were you able to find a solution for this?

dev-wasabi avatar Nov 18 '24 18:11 dev-wasabi