Coder Social home page Coder Social logo

Comments (9)

maxhawkins avatar maxhawkins commented on July 1, 2024

+1

Exposing these fields would also give errors a better JSON serialization, which could be useful when mapping GRPC to a REST API.

from grpc-go.

yinhm avatar yinhm commented on July 1, 2024

+1

I want to return something like "404 page not found" to the client, It would be easier if export RPCError.

from grpc-go.

iamqizhao avatar iamqizhao commented on July 1, 2024

We did not construct a new exported type for RPC error because we were
discussing whether we should open source the google internal status type
which has been used by all rpc frameworks and a lot of others inside google
and rpcErr was treated as a short-to-medium term solution. But that
discussion went silent for a while... I will see how I can rpcErr itself
better probably sometime next week and try to revive the previous
discussion. Thanks for all the valuable suggestions here!

On Sat, Mar 28, 2015 at 11:59 AM, yinhm [email protected] wrote:

+1

I want to return something like "404 page not found" to the client, It
would be easier if export RPCError.


Reply to this email directly or view it on GitHub
#110 (comment).

from grpc-go.

maxhawkins avatar maxhawkins commented on July 1, 2024

Could you make rpcErr similar enough to the internal status type that it will be compatible when/if you open source it? In the meantime a decent JSON serialization would be tremendously helpful.

from grpc-go.

hezhit avatar hezhit commented on July 1, 2024

+1
rpcErr is very useful for error handling.

from grpc-go.

joeatwork avatar joeatwork commented on July 1, 2024

+1
It'd be great to be able to pass and read error descriptions

from grpc-go.

sym3tri avatar sym3tri commented on July 1, 2024

This is something I am very much in need of. Otherwise we'll have to resort to the gross last resort of parsing the error string.

from grpc-go.

iamqizhao avatar iamqizhao commented on July 1, 2024

How about adding a Desc(err error) string to return the original error
description?

On Tue, Sep 22, 2015 at 2:50 PM, Ed Rooth [email protected] wrote:

This is something I am very much in need of. Otherwise we'll have to
resort to the gross last resort of parsing the error string.


Reply to this email directly or view it on GitHub
#110 (comment).

from grpc-go.

sym3tri avatar sym3tri commented on July 1, 2024

@iamqizhao that would suite my needs and seems like a very simple solution.

from grpc-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.