From 54c5ccb555978156be2c6e8a0dcefc956e9d65c2 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 12 Jun 2023 14:53:07 +1000 Subject: [PATCH] main: Fixed bug with domain stats not being found --- FireWallet/MainForm.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/FireWallet/MainForm.cs b/FireWallet/MainForm.cs index 138d06b..dd4bee4 100644 --- a/FireWallet/MainForm.cs +++ b/FireWallet/MainForm.cs @@ -705,6 +705,11 @@ namespace FireWallet /// public async Task APIPost(string path, bool wallet, string content) { + if (content == "{\"passphrase\": \"\" ,\"timeout\": 60}") + { + // For some reason, the API doesn't like an empty password, so we'll just use a default one + content = "{\"passphrase\": \"password\" ,\"timeout\": 60}"; + } string key = nodeSettings["Key"]; string ip = nodeSettings["IP"]; string port = "1203"; @@ -1485,6 +1490,10 @@ namespace FireWallet domainTMP.Controls.Add(domainName); + if (!name.ContainsKey("stats")) { + AddLog("Domain " + Domains[i] + " does not have stats"); + continue; + } Label expiry = new Label(); JObject stats = JObject.Parse(name["stats"].ToString()); if (stats.ContainsKey("daysUntilExpire"))