3 ms·
You can mess up grpc just as much. Errors are a good place to start.
by rplnt 1y ago
You can mess up grpc just as much. Errors are a good place to start.
- bborud 1y agoCould you elaborate?
- cyberax 1y agoWait until you hear about errors in REST...
- motorest 1y agoWhat about errors in REST? It's HTTP status codes, and implementations are free to pick whatever approach they want for response documents. Some frameworks default to using Problem Details responses, but no one forces that.
- cyberax 1y agoYou can't rely on them because they can come from middleboxes (load balancers, proxies, captive portals in hotels, etc.). So you can't rely on having structured errors for common codes such as 401/403/404, it's very typical to get unstructured text in payloads for such errors. Not a few REST bindings just fail with unhelpful serialization exceptions in such cases.