Trouble with promise chaining and error handling in Effect Typescript library code - Effect Community