For server streaming call, you can do $call->getStatus() to get the status object.
On Wed, Aug 23, 2017 at 3:30 AM, <[email protected]> wrote: > How do I get the grpc status for a server streaming call? > I imagine that if there were no errors while iterating all > $call->responses() the status is =0. > But what about other cases? I see that the iteration can throw > InvalidArgumentExceptions > but this exception has no $code in it. > > For non server streaming calls you can call $call->wait() that will return > the status. > > In go for this case you can do > grpc.Code(err) > when you have the error. > > I can't find anything for php. > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/grpc-io. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/grpc-io/9ff54e1a-e9f6-4b2a-8d8d-02fb97477770%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/9ff54e1a-e9f6-4b2a-8d8d-02fb97477770%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAEteGX1hSkQz6qPx8X%3DS2OL-YeBpWPd11ttm231sQ1Lx6tEkbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
