Skip to content

RpcClient gets stuck when created twice from different layers #6025

@jan-wilhelm

Description

@jan-wilhelm

What version of Effect is running?

3.19.15

What steps can reproduce the bug?

See a full reproduction here: https://github.com/jan-wilhelm/effect-rpc-issue-reproduction.

The root of the issue seems to be that I had a Layer.scoped which was constructing an RpcClient, and then inside my Effect I was also calling yield* RpcClient.make(...). For some reason, when using that RpcClient all actual RPC calls were being made just fine, but then the client was stuck and never resolved the call on the client-side.

What is the expected behavior?

I believe this should just work? Let me know if I missed any Effect gotchas.

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions