I have the same issue using php, on my machine I use in docker without a problem, but on a remote server, I encounter the same problem with exact grpc and protobuf version.
Did anyone manage to solve this problem? Le jeudi 25 janvier 2018 01:15:21 UTC+1, [email protected] a écrit : > > 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/f81f1a97-e344-483d-a1ce-ee1204492780%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
