Using pond.events().observeEarliest(…) to get the earliest event throws “EmptyError: no elements in sequence” when no matching events for the query are available in ActyxOS. This error cannot be caught using try/catch.
The documentation states “If there is an existing event fitting the query,
onNewEarliest will be called with that event.” so I would expect it not to call onNewEarliest when no event is available and I wouldn’t expect it to throw an error.
Please ask me for any additional information you need. I hope this is the right place to report this since I couldn’t find a public GitHub project for @actyx/pond.