SqlResolver.findById
causes All fibers interrupted without errors
when batched
#4491
Labels
bug
Something isn't working
What version of Effect is running?
3.13.2
What steps can reproduce the bug?
I've created a simple reproduction here: https://github.com/jonathanpowers-storable/issue-effect-sql-resolver
When I try to execute a
SqlResolver.findById
inside of i.e.Effect.all
orEffect.forEach
and I do so with concurrency and batching enabled, it simply saysAll fibers interrupted without error
and exits the program.I've tried to walk through it using a step debugger, but I can't find the spot where the interrupt is being triggered. I can see the batched request show up in the devtools, so I assume the problem is happening during the process of matching results to requests.
What is the expected behavior?
Should be able to batch sql requests when using SqlResolver.findById by setting
concurrency
andbatching
in a parent loop.Should return a success with the result or a failure with the relevant error, rather than an interrupt without any additional information.
What do you see instead?
[18:53:04.369] ERROR (#0):
All fibers interrupted without errors.
Additional information
Dependency Versions
Devtools

Reproduction
https://github.com/jonathanpowers-storable/issue-effect-sql-resolver
The text was updated successfully, but these errors were encountered: