Homework 0 forum

ERROR: empty protobuf packet

 
Picture of Sacha Adrien Bartholmé
ERROR: empty protobuf packet
by Sacha Adrien Bartholmé - Sunday, 27 September 2020, 15:46
 

Hello,

When my binary sends an UDP packet to the provided test binary via the Gossip Port, the test binary prints "ERROR: empty protobuf packet". The JSON that I send is non-empty. I saw that there is a protobuf library on github.com/dedis/protobuf. Should we use this or JSON? There is no problem when I use two instances of my own binary.

Picture of Cristina Basescu
Re: ERROR: empty protobuf packet
by Cristina Basescu - Monday, 28 September 2020, 08:14
 

Hi,

When my binary sends an UDP packet to the provided test binary via the Gossip Port, the test binary prints "ERROR: empty protobuf packet". The JSON that I send is non-empty.

Unless you add debug statements *in your own code*, and share them here, we're unlikely to be able to help. What test are you running, what exactly does your gossiper send, from which address?

I saw that there is a protobuf library on github.com/dedis/protobuf. Should we use this or JSON?

Certainly not. JSON is the expected encoding, just as the handouts specify.

Cristina