Grpc-node: Richer error model: status

Created on 7 Apr 2020  路  5Comments  路  Source: grpc/grpc-node

According to gRPC's Error Handling guide:

This richer error model is already supported in the C++, Go, Java, Python, and Ruby libraries, and at least the grpc-web and Node.js libraries have open issues requesting it

I haven't found any reference or open issue with information regarding richer error model support for Node. Is it already implemented or is there any plan to support it in the near future?

@grpgrpc-js grpc

Most helpful comment

Thanks, @murgatroid99 for the information. If I'm not wrong, the grpc-error-status library is to consume error status on the client-side. I'm looking to send richer error model status from Node (server) to clients. If there is no progress on that, I'm willing to collaborate to make it happen

All 5 comments

Just today I tried out https://www.npmjs.com/package/grpc-error-status and it seemed to work pretty well. It's not an official solution but it may help you.

+1

+1

Thanks, @murgatroid99 for the information. If I'm not wrong, the grpc-error-status library is to consume error status on the client-side. I'm looking to send richer error model status from Node (server) to clients. If there is no progress on that, I'm willing to collaborate to make it happen

I think you're right about what that library does, and there has not been any progress on a server-side counterpart. I would generally prefer for this to be in a separate library, so that the main library's API does not handle protobuf objects.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aryehb picture aryehb  路  6Comments

samuela picture samuela  路  4Comments

samiq picture samiq  路  5Comments

moloch-- picture moloch--  路  5Comments

lucavallin picture lucavallin  路  5Comments