Hi Stanley, I was getting an error when doing $call->getStatus(). It's not happening anymore since I updated to the last pecl version.
Thank you! On Thu, Aug 24, 2017 at 8:21 PM, Stanley Cheung <[email protected]> wrote: > 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/ms >> gid/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. >> > > -- Best from Amsterdam, Marcel Corso | Senior Engineer M: +31 20 700 9850 MessageBird <http://messagebird.com/> Ready to start building? Check out our developer docs <https://developers.messagebird.com/>. -- 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/CAGudTWJxXxztu8igWsc4vVvTedvny7WYURURaFnjUqpj-SaeWw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
