I am seeing this error "Endpoint read failed" on the client-side with the below code following this example (https://github.com/grpc/grpc/blob/v1.4.5/examples/cpp/route_guide/route_guide_client.cc). Using grpc v1.4.5.
The error log is here: https://github.com/abhikeshav/test-code/files/1662114/grpcerror.txt Any idea how I can fix this? grpc::ClientContext context; grpc::Status status; gnmi::SubscribeResponse response; std::unique_ptr<grpc::ClientReaderWriter<gnmi::SubscribeRequest, gnmi::SubscribeResponse>> c = stub_->Subscribe(&context); std::shared_ptr<grpc::ClientReaderWriter<gnmi::SubscribeRequest, gnmi::SubscribeResponse>> cs (move(c)); std::thread writer([cs, payload, operation]() { gnmi::SubscribeRequest r; gnmi::SubscriptionList* sl = new gnmi::SubscriptionList; populate_subscribe_request(r, payload, operation, *sl); cs->Write(r); cs->WritesDone(); }); while (cs->Read(&response)) { debug_log("Getting subscription data"); } writer.join(); status = cs->Finish(); if (!status.ok()) { throw(error{status.error_message()}); // Seeing the error here } -- 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/dfc62684-f9d6-460e-b492-93433423121e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
