diff --git a/ts/sql/Client.ts b/ts/sql/Client.ts index 95134488c..32ef61750 100644 --- a/ts/sql/Client.ts +++ b/ts/sql/Client.ts @@ -426,11 +426,15 @@ async function getAllItems(): Promise { const keys = ITEM_SPECS[key]; - const deserializedValue = keys - ? (specToBytes(keys, { value }) as ItemType).value - : value; + try { + const deserializedValue = keys + ? (specToBytes(keys, { value }) as ItemType).value + : value; - result[key] = deserializedValue; + result[key] = deserializedValue; + } catch (error) { + log.warn(`getAllItems(${id}): Failed to parse item from spec`, error); + } } return result;