Closed pboers1988 closed 4 weeks ago
The sync_response: true is being sent: https://github.com/openconfig/gnmic/blob/main/pkg/app/gnmi_server.go#L372 I also took a pcap while running a test, I could see a sync_response msg sent.
Thanks! Ill look into it further and try and figure out why the pyGNMi client lib is not parsing the response correctly then.
When using the gnmi-server I'm attempting to create a rudimentary rest endpoint to retrieve interface information from the network through the gnmi-server. The FastAPI endpoint makes use of a
pyGNMi
client and looks like so.Endpoint
Client
When calling the endpoint I receive the following strack trace
This is where the stacktrace is generated in
pyGNMI
https://github.com/akarneliuk/pygnmi/blob/master/pygnmi/client.py#L1178 The last message in the stream is aNone
that does not contain the sync_responseIt would seem to me as the gnmi-server is not sending the
sync_response
that the protocol and client expects. It just closes the socket. Would you agree this might be an implementation error in the gnmi-server code?