nestjs-bufconnect icon indicating copy to clipboard operation
nestjs-bufconnect copied to clipboard

Context and Error Handling

Open stevenceuppens opened this issue 1 year ago • 1 comments

Hi Patrick, nice work!

I have your code working, but running into a few missing features:

I need access to the Buf Context for accessing MetaData in the Buf Method handlers https://connectrpc.com/docs/node/implementing-services#context Have you foreseen this or should we add this?

I want to use the Buf Error definitions, but they do not map when using them https://connectrpc.com/docs/node/implementing-services#errors Have u tested/used them before?

Thanks! Steven

stevenceuppens avatar Sep 12 '23 16:09 stevenceuppens

Hi @stevenceuppens, I should be circling back around to this project soon as I have a need for it. I don't think it would be too difficult to expose that metadata. I'll have to review the error handling as well, so thank you for bringing this to my attention. If you feel like you want to take a crack at it, I would more than happily accept a PR.

wolfie82 avatar Sep 21 '23 19:09 wolfie82