From ecb5b490e3bcbc518e797611c76f64335d4dedad Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Wed, 17 Aug 2022 22:39:19 +1000 Subject: [PATCH] fix: do not throw on lack of response Expected proto3 behaviour, just no message returned. --- src/lib/waku_store/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/waku_store/index.ts b/src/lib/waku_store/index.ts index 2d09c4c911..6c8b902571 100644 --- a/src/lib/waku_store/index.ts +++ b/src/lib/waku_store/index.ts @@ -216,7 +216,7 @@ export class WakuStore { const reply = historyRpcQuery.decode(bytes); if (!reply.response) { - throw "History response misses response field"; + dbg("No message returned from store: `response` field missing"); } const response = reply.response as protoV2Beta4.HistoryResponse;