Riber runtime error
stevebluck opened this issue · comments
What version of Effect is running?
3.1.2
What steps can reproduce the bug?
Http.response.json({}).pipe(
Effect.flatMap((res) => Http.response.setCookie(res, "auth", "123", { path: "/", maxAge: "30 minutes" })),
Effect.runPromise,
);
What is the expected behavior?
To not blow up with a Fiber Runtime error
What do you see instead?
defect: Error: BUG: FiberRuntime - self => body(self, ...arguments) - please report an issue at https://github.com/Effect-TS/effect/issues
Additional information
Only blows up when providing the response as the first argument to Http.response.setCookie
. It does not blow up if you provide the response as the last argument (curried version)