Skip to content

Conversation

@kaichaosun
Copy link
Contributor

@kaichaosun kaichaosun commented Dec 3, 2025

It works but not stable, I have encountered stability issues with discovery, likely because the state firewall and vpn.
Fix such experience should be handled in nwaku.

Can you also test tui and pingpong example and see if it's acceptable? @jazzz

Changes:

  • add enrtree from status staging since it doesn't require rln
  • change pubsub topic to cluster 16 and shard 32, other shards seems not allowed for connection (thanks @Ivansete-status).

Fix: #17

@jazzz
Copy link
Collaborator

jazzz commented Dec 3, 2025

Here is the output from examples/pingpong.nim

INF 2025-12-03 14:11:31.332-08:00 Initializing networking                    tid=74209402 addrs=@[/ip4/127.0.0.1/tcp/50053]
NTC 2025-12-03 14:11:31.334-08:00 Client started                             topics="chat client" tid=74209402 client=saro defaultInbox="(pubkey: 564E..9019, inbox_addr: , name: )"
INF 2025-12-03 14:11:31.339-08:00 Initializing networking                    tid=74209402 addrs=@[/ip4/127.0.0.1/tcp/50093]
NTC 2025-12-03 14:11:31.340-08:00 Client started                             topics="chat client" tid=74209402 client=raya defaultInbox="(pubkey: 4E3B..B122, inbox_addr: , name: )"
INF 2025-12-03 14:11:31.343-08:00 Message listener started                   topics="chat client" tid=74209402
NTC 2025-12-03 14:11:31.343-08:00 Client start complete                      topics="chat client" tid=74209402 client=saro
INF 2025-12-03 14:11:31.344-08:00 Message listener started                   topics="chat client" tid=74209402
NTC 2025-12-03 14:11:31.345-08:00 Client start complete                      topics="chat client" tid=74209402 client=raya
INF 2025-12-03 14:11:31.355-08:00 Updating DNS discovery root                topics="dnsdisc.client" tid=74209402 domain=boot.staging.status.nodes.status.im record="enrtree-root:v1 e=7JBNEH6GMTGZOSEXSFPI4OHM2M l=FDXN3SN67NA5DKA4J2GOK7BVQI seq=1 sig=j8blCqRfKs7qcm04r1XlUpaNe40jLwDD4cRW-d7I0CwzmrLP52Fyv-MQ5icgEIC_0qXg8TLqyX3GwW-Qsl9e_AE"
INF 2025-12-03 14:11:31.356-08:00 Updating DNS discovery root                topics="dnsdisc.client" tid=74209402 domain=boot.staging.status.nodes.status.im record="enrtree-root:v1 e=7JBNEH6GMTGZOSEXSFPI4OHM2M l=FDXN3SN67NA5DKA4J2GOK7BVQI seq=1 sig=j8blCqRfKs7qcm04r1XlUpaNe40jLwDD4cRW-d7I0CwzmrLP52Fyv-MQ5icgEIC_0qXg8TLqyX3GwW-Qsl9e_AE"
ERR 2025-12-03 14:11:31.388-08:00 Failed to parse and verify subtree entry   topics="dnsdisc.client" tid=74209402 domain=boot.staging.status.nodes.status.im record=enrtree-branch:
ERR 2025-12-03 14:11:31.389-08:00 Failed to parse and verify subtree entry   topics="dnsdisc.client" tid=74209402 domain=boot.staging.status.nodes.status.im record=enrtree-branch:
NTC 2025-12-03 14:11:32.675-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x69d9752c/rfc26 len=796
ERR 2025-12-03 14:11:32.675-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x69d9752c/rfc26
NTC 2025-12-03 14:11:32.675-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x54f40cf8/rfc26 len=796
ERR 2025-12-03 14:11:32.675-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 3" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:32.675-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x69d9752c/rfc26 len=796
ERR 2025-12-03 14:11:32.675-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x69d9752c/rfc26
NTC 2025-12-03 14:11:33.840-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x47a5197f/rfc26 len=540
ERR 2025-12-03 14:11:33.840-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 6" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x47a5197f/rfc26
NTC 2025-12-03 14:11:33.841-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x343dcea7/rfc26 len=540
ERR 2025-12-03 14:11:33.841-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 6" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x343dcea7/rfc26
NTC 2025-12-03 14:11:35.579-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x47a5197f/rfc26 len=540
ERR 2025-12-03 14:11:35.579-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 6" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x47a5197f/rfc26
NTC 2025-12-03 14:11:35.579-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x7b83d5dd/rfc26 len=540
ERR 2025-12-03 14:11:35.579-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 3" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x7b83d5dd/rfc26
NTC 2025-12-03 14:11:35.579-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x3f1af44e/rfc26 len=540
ERR 2025-12-03 14:11:35.579-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x3f1af44e/rfc26
NTC 2025-12-03 14:11:35.579-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x745e08bb/rfc26 len=540
ERR 2025-12-03 14:11:35.579-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x745e08bb/rfc26
NTC 2025-12-03 14:11:35.579-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x343dcea7/rfc26 len=540
ERR 2025-12-03 14:11:35.579-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 6" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x343dcea7/rfc26
NTC 2025-12-03 14:11:35.579-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x311f5fa6/rfc26 len=540
ERR 2025-12-03 14:11:35.579-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x311f5fa6/rfc26
NTC 2025-12-03 14:11:35.579-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0xc4b8908d/rfc26 len=540
ERR 2025-12-03 14:11:35.579-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0xc4b8908d/rfc26
NTC 2025-12-03 14:11:35.579-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/sonda/2/polls/proto len=13
ERR 2025-12-03 14:11:35.579-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/sonda/2/polls/proto
NTC 2025-12-03 14:11:35.579-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x988744a2/rfc26 len=540
ERR 2025-12-03 14:11:35.579-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Unexpected data kind 2: Fixed32, exprected Varint" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x988744a2/rfc26
NTC 2025-12-03 14:11:35.664-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x7b83d5dd/rfc26 len=540
ERR 2025-12-03 14:11:35.664-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 3" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x7b83d5dd/rfc26
NTC 2025-12-03 14:11:35.664-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x745e08bb/rfc26 len=540
ERR 2025-12-03 14:11:35.664-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x745e08bb/rfc26
NTC 2025-12-03 14:11:35.664-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/sonda/2/polls/proto len=13
ERR 2025-12-03 14:11:35.664-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/sonda/2/polls/proto
NTC 2025-12-03 14:11:35.664-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x988744a2/rfc26 len=540
ERR 2025-12-03 14:11:35.664-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Unexpected data kind 2: Fixed32, exprected Varint" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x988744a2/rfc26
NTC 2025-12-03 14:11:35.664-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x311f5fa6/rfc26 len=540
ERR 2025-12-03 14:11:35.664-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x311f5fa6/rfc26
NTC 2025-12-03 14:11:35.664-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0xc4b8908d/rfc26 len=540
ERR 2025-12-03 14:11:35.665-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0xc4b8908d/rfc26
NTC 2025-12-03 14:11:35.665-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x3f1af44e/rfc26 len=540
ERR 2025-12-03 14:11:35.665-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x3f1af44e/rfc26
NTC 2025-12-03 14:11:36.573-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x54f40cf8/rfc26 len=1564
ERR 2025-12-03 14:11:36.573-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:37.661-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x69d9752c/rfc26 len=796
ERR 2025-12-03 14:11:37.661-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 6" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x69d9752c/rfc26
NTC 2025-12-03 14:11:37.661-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x40268168/rfc26 len=540
ERR 2025-12-03 14:11:37.661-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x40268168/rfc26
NTC 2025-12-03 14:11:37.662-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0xef3526e4/rfc26 len=540
ERR 2025-12-03 14:11:37.662-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 6" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0xef3526e4/rfc26
NTC 2025-12-03 14:11:38.687-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x54f40cf8/rfc26 len=1564
ERR 2025-12-03 14:11:38.687-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:38.687-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x69d9752c/rfc26 len=796
ERR 2025-12-03 14:11:38.687-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 6" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x69d9752c/rfc26
NTC 2025-12-03 14:11:38.687-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0xef3526e4/rfc26 len=540
ERR 2025-12-03 14:11:38.687-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 6" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0xef3526e4/rfc26
NTC 2025-12-03 14:11:38.687-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x40268168/rfc26 len=540
ERR 2025-12-03 14:11:38.687-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x40268168/rfc26
NTC 2025-12-03 14:11:38.687-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0xef3526e4/rfc26 len=540
ERR 2025-12-03 14:11:38.687-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0xef3526e4/rfc26
NTC 2025-12-03 14:11:39.721-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x69d9752c/rfc26 len=796
ERR 2025-12-03 14:11:39.721-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x69d9752c/rfc26
NTC 2025-12-03 14:11:39.721-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/sonda/2/polls/proto len=13
ERR 2025-12-03 14:11:39.721-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/sonda/2/polls/proto
NTC 2025-12-03 14:11:39.721-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/sonda/2/polls/proto len=13
ERR 2025-12-03 14:11:39.722-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/sonda/2/polls/proto
NTC 2025-12-03 14:11:41.347-08:00 IntroBundleCreated                         topics="chat client" tid=74209402 client=raya pubBytes="[78, 59, 142, 218, 179, 173, 54, 162, 82, 222, 76, 253, 85, 199, 140, 192, 141, 182, 194, 70, 98, 32, 69, 59, 15, 34, 214, 105, 136, 169, 177, 34]"
NTC 2025-12-03 14:11:41.347-08:00 New PRIVATE Convo                          topics="chat client" tid=74209402 client=saro fromm=4E3B8EDAB3AD36A252DE4CFD55C78CC08DB6C2466220453B0F22D66988A9B122
INF 2025-12-03 14:11:41.350-08:00 Successfully initialized bloom filter      tid=74209402 capacity=10000 minCapacity=8000 maxCapacity=12000
NTC 2025-12-03 14:11:41.350-08:00 Creating conversation                      topics="chat client" tid=74209402 client=saro topic=354c877b
NTC 2025-12-03 14:11:41.352-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/inbox/3c76f723 len=123
WRN 2025-12-03 14:11:41.352-08:00 No conversation found                      topics="chat client" tid=74209402 client=saro hint=/convo/inbox/v1/3c76f723 knownIds="354c877b, /convo/inbox/v1/ae5f0831"
NTC 2025-12-03 14:11:41.666-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x69d9752c/rfc26 len=796
ERR 2025-12-03 14:11:41.666-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x69d9752c/rfc26
NTC 2025-12-03 14:11:41.666-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/inbox/3c76f723 len=123
INF 2025-12-03 14:11:41.668-08:00 Successfully initialized bloom filter      tid=74209402 capacity=10000 minCapacity=8000 maxCapacity=12000
NTC 2025-12-03 14:11:41.668-08:00 Creating PrivateV1 conversation            topics="chat client" tid=74209402 client=raya topic=354c877b
NTC 2025-12-03 14:11:41.668-08:00 Creating conversation                      topics="chat client" tid=74209402 client=raya topic=354c877b
           ------>  Raya :: New Conversation: 354c877b
NTC 2025-12-03 14:11:41.684-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0xc49c91b7/rfc26 len=796
ERR 2025-12-03 14:11:41.684-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 3" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0xc49c91b7/rfc26
NTC 2025-12-03 14:11:41.684-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/sonda/2/polls/proto len=13
ERR 2025-12-03 14:11:41.684-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/sonda/2/polls/proto
NTC 2025-12-03 14:11:41.684-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/sonda/2/polls/proto len=13
ERR 2025-12-03 14:11:41.684-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/sonda/2/polls/proto
NTC 2025-12-03 14:11:41.684-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/convo/private/354c877b len=18973
INF 2025-12-03 14:11:41.685-08:00 outgoing message, no need to handle        topics="chat client" tid=74209402 convo=354c877b
NTC 2025-12-03 14:11:43.770-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x69d9752c/rfc26 len=796
ERR 2025-12-03 14:11:43.770-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x69d9752c/rfc26
NTC 2025-12-03 14:11:43.770-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/convo/private/354c877b len=18973
    Saro  <------        :: TextFrame(encoding:Utf8 text:Hello)
NTC 2025-12-03 14:11:43.775-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0xc49c91b7/rfc26 len=796
ERR 2025-12-03 14:11:43.775-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 3" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0xc49c91b7/rfc26
NTC 2025-12-03 14:11:43.775-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x30a3b237/rfc26 len=540
ERR 2025-12-03 14:11:43.775-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 3" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x30a3b237/rfc26
NTC 2025-12-03 14:11:44.533-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/sonda/2/polls/proto len=13
ERR 2025-12-03 14:11:44.533-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/sonda/2/polls/proto
NTC 2025-12-03 14:11:44.535-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/sonda/2/polls/proto len=13
ERR 2025-12-03 14:11:44.535-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/sonda/2/polls/proto
NTC 2025-12-03 14:11:44.577-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x54f40cf8/rfc26 len=1052
ERR 2025-12-03 14:11:44.577-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:44.666-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x69d9752c/rfc26 len=796
ERR 2025-12-03 14:11:44.667-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x69d9752c/rfc26
NTC 2025-12-03 14:11:44.667-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x54f40cf8/rfc26 len=1052
ERR 2025-12-03 14:11:44.667-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:44.667-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x30a3b237/rfc26 len=540
ERR 2025-12-03 14:11:44.667-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 3" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x30a3b237/rfc26
NTC 2025-12-03 14:11:46.649-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0xb0df4553/rfc26 len=540
ERR 2025-12-03 14:11:46.649-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0xb0df4553/rfc26
NTC 2025-12-03 14:11:47.578-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0xb0df4553/rfc26 len=540
ERR 2025-12-03 14:11:47.578-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0xb0df4553/rfc26
NTC 2025-12-03 14:11:48.794-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/convo/private/354c877b len=19006
INF 2025-12-03 14:11:48.794-08:00 outgoing message, no need to handle        topics="chat client" tid=74209402 convo=354c877b
NTC 2025-12-03 14:11:49.760-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/convo/private/354c877b len=19006
ERR 2025-12-03 14:11:49.764-08:00 decryption failed                          topics="chat client" tid=74209402 error=ChatError(code=errWrapped, context: [code = errMessageAuthentication,
context = 0x104844ca0"Got Tag: [159, 154, 155, 254, 255, 255, 255, 255, 74, 53, 248, 255, 255, 255, 255, 255] expected: [143, 243, 25, 41, 221, 205, 247, 255, 155, 145, 255, 255, 255, 255, 255, 255]",
parent = nil,
name = 0x1038cb726"NaxolotlError",
msg = "",
trace = [],
up = nil])
NTC 2025-12-03 14:11:49.764-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x54f40cf8/rfc26 len=1052
ERR 2025-12-03 14:11:49.765-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:50.670-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x54f40cf8/rfc26 len=1052
ERR 2025-12-03 14:11:50.670-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 7" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:50.670-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x54f40cf8/rfc26 len=1052
ERR 2025-12-03 14:11:50.670-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Unexpected data kind 1: Fixed32, exprected LengthDelim" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:50.671-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x54f40cf8/rfc26 len=1052
ERR 2025-12-03 14:11:50.671-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Unexpected data kind 1: Fixed32, exprected LengthDelim" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:51.580-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x54f40cf8/rfc26 len=1308
ERR 2025-12-03 14:11:51.580-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Unexpected data kind 1: Varint, exprected LengthDelim" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:51.580-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x54f40cf8/rfc26 len=796
ERR 2025-12-03 14:11:51.580-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 3" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:52.583-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x54f40cf8/rfc26 len=1308
ERR 2025-12-03 14:11:52.583-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Unexpected data kind 1: Varint, exprected LengthDelim" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:52.583-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x54f40cf8/rfc26 len=796
ERR 2025-12-03 14:11:52.584-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 3" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:54.578-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/waku/1/0x54f40cf8/rfc26 len=796
ERR 2025-12-03 14:11:54.578-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 3" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:11:55.188-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/sonda/2/polls/proto len=13
ERR 2025-12-03 14:11:55.188-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/sonda/2/polls/proto
NTC 2025-12-03 14:11:55.190-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=raya contentTopic=/sonda/2/polls/proto len=13
ERR 2025-12-03 14:11:55.190-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/sonda/2/polls/proto
NTC 2025-12-03 14:11:59.578-08:00 Inbound Message Received                   topics="chat client" tid=74209402 client=saro contentTopic=/waku/1/0x54f40cf8/rfc26 len=796
ERR 2025-12-03 14:11:59.578-08:00 Error in message listener                  topics="chat client" tid=74209402 err="Failed to decode WapEnvelopeV1: Failed to decode payload: Invalid wire type 4" pubsub=/waku/2/rs/16/32 contentTopic=/waku/1/0x54f40cf8/rfc26
NTC 2025-12-03 14:12:01.358-08:00 Client stopped                             topics="chat client" tid=74209402 client=saro
NTC 2025-12-03 14:12:01.362-08:00 Client stopped                             topics="chat client" tid=74209402 client=raya
NTC 2025-12-03 14:12:01.362-08:00 Shutdown   

@jazzz
Copy link
Collaborator

jazzz commented Dec 3, 2025

It appears that the client is attempting to parse all messages, and the traffic from status is not WapEnvelope wrapped which is leading to decoding errors. Looks like we'll need to:

  • [MUST] Not error on WapEnvelope decode failure
  • [Should] Allow filtering of messages to specific content_topics, to reduce processing overhead.

await raya.start()

await sleepAsync(5.seconds)
await sleepAsync(10.seconds)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the TUI example, you changed all durations to chronos.seconds(10). Which is the preferable form? That way I can make my future code consistent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In TUI example, the times library is conflict with chronos, so the prefix is needed, 5.seconds seems preferable if no conflict happens.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import chronos
import illwill
import libp2p/crypto/crypto
import times
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could avoid the conflict between chronos and times - though not the cleanest

Suggested change
from times import DateTime, format, now, `<`

Copy link
Contributor Author

@kaichaosun kaichaosun Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks not clean to me, let's stick to the current one. I won't bother too much as we are switching language soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update WakuClient peer Discovery

3 participants