grpc
grpc copied to clipboard
How to do error handling?
First of all, this is simply great! Awesome work!!
I am trying to figure out how to properly return errors on exceptions. Any suggestions?
Good point. I don't think there's anything in here yet for it for returning any response code other than 0 (OK). I think this is the reason the Ruby implementation requires you to accept the call object in your method, so you can change the status.
I think it'd be a great idea to at least rescue exceptions and return an internal error if this shard doesn't already do that — it's been a while since I looked at that part of the code. 🙂
Yeah, I think two things are missing:
- Error / Exception Management
- Authentication / Metadata support
Those are two pretty big issues. Are there any plans on implementing them?
I'm open to suggestions
I've opened a PR to add status codes. For auth I'm not sure where to start. https://github.com/jgaskins/grpc/pull/13
Also I've noticed, the standard "list" command to see available services is not available. This would be a nice addition.