attestate / kiwistand

kiwistand is a p2p node client for a web3 writer friendly Hacker News that nobody controls but everybody co-owns
https://news.kiwistand.com
GNU General Public License v3.0
63 stars 25 forks source link

upon receiving topical messages it can be that some messages aren't properly serialized #74

Closed TimDaub closed 1 year ago

TimDaub commented 1 year ago

sending node

0|kiwinews  | 2023-06-20T07:30:12: 2023-06-20T07:30:12.002Z @attestate/kiwistand Storing messag
e with index "6491557111a79dada243b2ddc92cb7e5a59dc50e8b1661bba5dd86f4f837fd2f13ef9fba"        0|kiwinews  | 2023-06-20T07:30:12: 2023-06-20T07:30:12.029Z @attestate/kiwistand New root: "f71
9f4dbb1bc428f946ef5267d37a7ebd6f2c41dadc5356fe630f7db3ec2a49c"                                 0|kiwinews  | 2023-06-20T07:30:12: 2023-06-20T07:30:12.029Z @attestate/kiwistand Sending messag
e to peers: "kiwi/0.0.1/messages" and message: "yM{"href":"https://julienc.me/articles/Extract_embeddings_Hacker_News_article","signature":"0x31756694ce1b3a0eb41a92962b2125715e22b3bbdd04b4a3
acd501b9501503d869521269d2d7c3fdcd5dd918a63f18b0076c1dd8c38ac9b06606863d48c59f4f1b","timestamp":1687246193,"title":"Extracting embeddings from popular articles on Hacker News","type":"amplif
y"}"

receiving node

0|kiwinews  | 2023-06-20T07:30:12: 2023-06-20T07:30:12.094Z @attestate/kiwistand Wrongly format
ted message: [{"instancePath":"","schemaPath":"#/type","keyword":"type","params":{"type":"objec
t"},"message":"must be object"}]
0|kiwinews  | 2023-06-20T07:30:12: 2023-06-20T07:30:12.096Z @attestate/kiwistand message handle
r: Didn't add message to database because of error: "Error: Wrongly formatted message: [{"insta
ncePath":"","schemaPath":"#/type","keyword":"type","params":{"type":"object"},"message":"must b
e object"}]"