>
> This smells like a cardinality problem - in particular I suspect that in 
> your .proto file you've specified the Watch RPC method as request-streaming 
> but in the code you've pasted above you are attempting to invoke the method 
> as though it were request-unary. If you intend the Watch RPC method to only 
> ever be given exactly one WatchRequest message, do you need to remove the 
>
first "stream " from "rpc Watch(stream WatchRequest) returns (stream 
> WatchResponse) {}" in your .proto file? If you intend the Watch RPC method 
> to be able to be given zero or more WatchRequest messages and wish in the 
> context of this one call to give it just one WatchRequest message, do you 
> need to change your invocation to "watch = wi.Watch(iter((wr,)))"?
>
> The thread supposed to feed the watch-Rendevouz died leaving the console 
>> in an eternal loop (or maybe there is a long timeout) if I try to use 
>> watch.next()
>>
>> I tried debugging it, but the automatedly generated code is stacked so 
>> deep and on top there is the threading complexity.... i have no idea what 
>> the final function does and why it would try to treat the WatchRequest as 
>> an iterator. I haven't modified the output of the grpc tools at all.
>>
>> If someone has an Idea, could help me with this, or even has a working 
>> ETCD V3 Interface for python laying around. I would be grateful for either.
>>
>
> Thank you for including your Python code - it would also help to look at 
> the associated .proto code.
> -Nathaniel
>

Of course, my bad. The protoflies are part of the official etcd3 project, I 
will post the link below:
https://github.com/coreos/etcd/blob/master/etcdserver/etcdserverpb/rpc.proto

It seems that it actually expects a stream of watch requests (which doesn't 
appear to make sense to me at first glance, but I am not very experienced 
with either etcd nor grpc yet). I will try to go for either of your 
solutions. Thank you so much for the response. I really was stuck. I hope 
providing the proto-file gives more clarification.

Greets,
Martin

-- 
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/7e1cdfba-c9e3-4eac-b209-1f84e8365d98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to