Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception details appear to be dropped after second hop #720

Open
AArnott opened this issue Sep 24, 2021 · 2 comments
Open

Exception details appear to be dropped after second hop #720

AArnott opened this issue Sep 24, 2021 · 2 comments

Comments

@AArnott
Copy link
Member

AArnott commented Sep 24, 2021

When an RPC chain exists such that an RPC client invokes a server, which as part of serving that request makes its own RPC call, if the second server throws an exception, the first server sees the remote exception details but the original client only sees the callstack of the intermediate server when it rethrew the exception.
Ideally the original client would somehow see stacks of both RPC servers

@CyrusNajmabadi
Copy link

but the original client only sees the callstack of the intermediate server when it rethrew the exception.

This was also pretty confusing as it made it seem as if the error message we were seeing was associated with the RPC mechanism itself, making us think it was the RPC layer at fault (or our immediate use of it). :)

@AArnott
Copy link
Member Author

AArnott commented Sep 24, 2021

I'm afraid that will likely always be the case, because within the process the exception is first thrown from JsonRpc.InvokeAsync. You just have to know that like TargetInvocationException, RemoteInvocationException is just a wrapper and means it's the server's fault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants