0 Error undefined query (sometimes)

I get this “0 error” sometimes. In this case I just clicked on “last 3 hours” after viewing the day’s data. I can get it to display properly by retrying.

This happens much more frequently after a recent change in internet providers and getting a different wifi router. Is there a connection with this change?

Firmware 02_07_05
Chrome 105.0.5195.127
Windows 11

The message is not anything that would be returned by IoTaWatt, so I suspect it has something to do with the WiFi or network. That you can simply retry and succeed supports that. I would suggest that you turn on the JS debugger in your browser and select network requests to record details of each request. When this occurs, look at the request and response to see if there is more information available.

My first time using JS debugger. Got this the last time the problem occurred.

Headers

General
Request URL: http://iotawatt.local/query?format=json&header=yes&resolution=high&missing=null&begin=s-3h&end=s&select=[time.utc.unix,Total_Power.Watts.d1]&group=auto
Referrer Policy: strict-origin-when-cross-origin

Request headers
Provisional headers are shown
Learn more
Accept: text/plain, /; q=0.01
Referer: http://iotawatt.local/graph2.htm?graph=Kitchen%20Outlets
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
X-Requested-With: XMLHttpRequest

Payload
format: json
header: yes
resolution: high
missing: null
begin: s-3h
end: s
select: [time.utc.unix,Total_Power.Watts.d1]
group: auto

Preview
Failed to load response data: No data found for resource with given identifier

Response
Failed to load response data: No data found for resource with given identifier

Initiator
7 items it won’t let me copy

Timing
Stalled

Looks like there was no response from the IoTaWatt. That could mean it never got the query, or it could mean that it was preoccupied for an extended time and could not handle the request. Unless you have something else issuing queries to the IoTaWatt at the same time, I’d operate under the assumption that it never got the request.

Can you post the status display with the WiFi tab expanded and also the recent message log?

There shouldn’t be anything else issuing queries, I’m not connected to any of the third party graphing sites. The switch to a different wifi router occurred on Sept 15. You can see the long disconnect in the log. Attaching some more into…

7/09/22 12:01:02 LLMNR responder started for hostname IotaWatt
7/09/22 12:01:02 Updater: service started. Auto-update class is MINOR
7/09/22 12:01:03 historyLog: service started.
7/09/22 12:01:03 historyLog: Last log entry 07/09/22 12:00:00
7/09/22 12:01:03 Updater: Auto-update is current for class MINOR.

** Restart **

SD initialized.
7/09/22 16:01:06z Real Time Clock is running. Unix time 1657382466
7/09/22 16:01:06z Reset reason: Exception
7/09/22 16:01:06z Trace: 9:9, 1:2, 1:3, 10:50, 25:10, 25:10, 25:10, 25:10, 25:12, 25:13, 25:13, 25:13, 25:17, 25:13, 25:13, 25:18, 25:19, 25:20, 10:52, 10:55, 10:56, 25:20, 25:40, 25:41, 25:50, 25:51, 25:53, 25:54, 25:60, 25:61, 25:61, 25:64
7/09/22 16:01:06z ESP8266 ID: 15876047, RTC PCF8523 (68)
7/09/22 16:01:06z IoTaWatt 5.0, Firmware version 02_07_05
7/09/22 16:01:06z SPIFFS mounted.
7/09/22 12:01:06 Local time zone: -5:00, using DST/BST when in effect.
7/09/22 12:01:06 device name: IotaWatt
7/09/22 12:01:06 HTTP server started
7/09/22 12:01:06 timeSync: service started.
7/09/22 12:01:06 statService: started.
7/09/22 12:01:06 dataLog: service started.
7/09/22 12:01:06 dataLog: Last log entry 07/09/22 12:01:00
7/09/22 12:01:10 WiFi connected. SSID=Lulu_2.4, IP=192.168.0.53, channel=10, RSSI -66db
7/09/22 12:01:10 MDNS responder started for hostname IotaWatt
7/09/22 12:01:10 LLMNR responder started for hostname IotaWatt
7/09/22 12:01:10 Updater: service started. Auto-update class is MINOR
7/09/22 12:01:11 historyLog: service started.
7/09/22 12:01:11 historyLog: Last log entry 07/09/22 12:01:00
7/09/22 12:01:11 Updater: Auto-update is current for class MINOR.

** Restart **

SD initialized.
7/22/22 04:08:32z Real Time Clock is running. Unix time 1658462912
7/22/22 04:08:32z Reset Reason: Power-fail restart.
7/22/22 04:08:32z ESP8266 ID: 15876047, RTC PCF8523 (68)
7/22/22 04:08:32z IoTaWatt 5.0, Firmware version 02_07_05
7/22/22 04:08:32z SPIFFS mounted.
7/22/22 00:08:32 Local time zone: -5:00, using DST/BST when in effect.
7/22/22 00:08:32 device name: IotaWatt
7/22/22 00:08:35 Connecting with WiFiManager.
7/22/22 00:10:44 Did not connect after power-fail. Restarting to reset WiFi.

** Restart **

SD initialized.
7/22/22 04:10:45z Real Time Clock is running. Unix time 1658463045
7/22/22 04:10:45z Reset reason: Software/System restart
7/22/22 04:10:45z Trace: 34:5, 34:6[13], 34:10[1], 34:30, 34:10[2], 34:30, 34:10[4], 34:30, 34:15, 34:30, 34:30, 34:10[5], 34:30, 34:15, 34:30, 34:5, 34:5, 34:5, 34:6[3], 34:10[1], 34:30, 34:10[2], 11:31[3], 11:30[3], 11:35, 11:36, 11:35, 11:40, 11:45, 11:50, 11:55, 11:70
7/22/22 04:10:45z ESP8266 ID: 15876047, RTC PCF8523 (68)
7/22/22 04:10:45z IoTaWatt 5.0, Firmware version 02_07_05
7/22/22 04:10:45z SPIFFS mounted.
7/22/22 00:10:45 Local time zone: -5:00, using DST/BST when in effect.
7/22/22 00:10:45 device name: IotaWatt
7/22/22 00:10:45 HTTP server started
7/22/22 00:10:45 timeSync: service started.
7/22/22 00:10:45 statService: started.
7/22/22 00:10:45 dataLog: service started.
7/22/22 00:10:45 dataLog: Last log entry 07/22/22 00:08:15
7/22/22 00:10:49 WiFi connected. SSID=Lulu_2.4, IP=192.168.0.53, channel=10, RSSI -64db
7/22/22 00:10:49 MDNS responder started for hostname IotaWatt
7/22/22 00:10:49 LLMNR responder started for hostname IotaWatt
7/22/22 00:10:49 Updater: service started. Auto-update class is MINOR
7/22/22 00:10:53 historyLog: service started.
7/22/22 00:10:53 historyLog: Last log entry 07/22/22 00:08:00
7/22/22 00:11:00 Updater: Invalid response from server. HTTPcode: -11
7/22/22 01:10:51 Updater: Auto-update is current for class MINOR.

** Restart **

SD initialized.
7/24/22 00:15:15z Real Time Clock is running. Unix time 1658621715
7/24/22 00:15:15z Reset Reason: Power-fail restart.
7/24/22 00:15:15z ESP8266 ID: 15876047, RTC PCF8523 (68)
7/24/22 00:15:15z IoTaWatt 5.0, Firmware version 02_07_05
7/24/22 00:15:15z SPIFFS mounted.
7/23/22 20:15:15 Local time zone: -5:00, using DST/BST when in effect.
7/23/22 20:15:15 device name: IotaWatt
7/23/22 20:15:18 Connecting with WiFiManager.
7/23/22 20:17:27 Did not connect after power-fail. Restarting to reset WiFi.

** Restart **

SD initialized.
7/24/22 00:17:28z Real Time Clock is running. Unix time 1658621848
7/24/22 00:17:28z Reset reason: Software/System restart
7/24/22 00:17:28z Trace: 34:5, 34:6[13], 34:10[1], 34:30, 34:10[2], 34:30, 34:10[4], 34:30, 34:15, 34:30, 34:30, 34:10[5], 34:30, 34:15, 34:30, 34:5, 34:5, 34:5, 34:6[3], 34:10[1], 34:30, 34:10[2], 11:31[3], 11:30[3], 11:35, 11:36, 11:35, 11:40, 11:45, 11:50, 11:55, 11:70
7/24/22 00:17:28z ESP8266 ID: 15876047, RTC PCF8523 (68)
7/24/22 00:17:28z IoTaWatt 5.0, Firmware version 02_07_05
7/24/22 00:17:28z SPIFFS mounted.
7/23/22 20:17:28 Local time zone: -5:00, using DST/BST when in effect.
7/23/22 20:17:28 device name: IotaWatt
7/23/22 20:17:28 HTTP server started
7/23/22 20:17:28 timeSync: service started.
7/23/22 20:17:28 statService: started.
7/23/22 20:17:28 dataLog: service started.
7/23/22 20:17:28 dataLog: Last log entry 07/23/22 20:15:05
7/23/22 20:17:32 WiFi connected. SSID=Lulu_2.4, IP=192.168.0.53, channel=10, RSSI -65db
7/23/22 20:17:32 MDNS responder started for hostname IotaWatt
7/23/22 20:17:32 LLMNR responder started for hostname IotaWatt
7/23/22 20:17:32 Updater: service started. Auto-update class is MINOR
7/23/22 20:17:36 historyLog: service started.
7/23/22 20:17:36 historyLog: Last log entry 07/23/22 20:15:00
7/23/22 20:17:43 Updater: Invalid response from server. HTTPcode: -11
7/23/22 21:17:40 Updater: Auto-update is current for class MINOR.
7/31/22 21:20:25 WiFi disconnected.
7/31/22 21:21:28 WiFi connected. SSID=Lulu_2.4, IP=192.168.0.53, channel=10, RSSI -66db

** Restart **

SD initialized.
8/10/22 18:05:53z Real Time Clock is running. Unix time 1660154753
8/10/22 18:05:53z Reset Reason: Power-fail restart.
8/10/22 18:05:53z ESP8266 ID: 15876047, RTC PCF8523 (68)
8/10/22 18:05:53z IoTaWatt 5.0, Firmware version 02_07_05
8/10/22 18:05:53z SPIFFS mounted.
8/10/22 14:05:53 Local time zone: -5:00, using DST/BST when in effect.
8/10/22 14:05:53 device name: IotaWatt
8/10/22 14:05:56 Connecting with WiFiManager.
8/10/22 14:08:05 Did not connect after power-fail. Restarting to reset WiFi.

** Restart **

SD initialized.
8/10/22 18:08:06z Real Time Clock is running. Unix time 1660154886
8/10/22 18:08:06z Reset reason: Software/System restart
8/10/22 18:08:06z Trace: 34:5, 34:6[13], 34:10[1], 34:30, 34:10[2], 34:30, 34:10[4], 34:30, 34:15, 34:30, 34:30, 34:10[5], 34:30, 34:15, 34:30, 34:5, 34:5, 34:5, 34:6[3], 34:10[1], 34:30, 34:10[2], 11:31[3], 11:30[3], 11:35, 11:36, 11:35, 11:40, 11:45, 11:50, 11:55, 11:70
8/10/22 18:08:06z ESP8266 ID: 15876047, RTC PCF8523 (68)
8/10/22 18:08:06z IoTaWatt 5.0, Firmware version 02_07_05
8/10/22 18:08:06z SPIFFS mounted.
8/10/22 14:08:06 Local time zone: -5:00, using DST/BST when in effect.
8/10/22 14:08:06 device name: IotaWatt
8/10/22 14:08:06 HTTP server started
8/10/22 14:08:06 timeSync: service started.
8/10/22 14:08:06 statService: started.
8/10/22 14:08:06 dataLog: service started.
8/10/22 14:08:06 dataLog: Last log entry 08/10/22 14:02:35
8/10/22 14:08:10 WiFi connected. SSID=Lulu_2.4, IP=192.168.0.53, channel=10, RSSI -61db
8/10/22 14:08:10 MDNS responder started for hostname IotaWatt
8/10/22 14:08:10 LLMNR responder started for hostname IotaWatt
8/10/22 14:08:10 Updater: service started. Auto-update class is MINOR
8/10/22 14:08:11 historyLog: service started.
8/10/22 14:08:11 historyLog: Last log entry 08/10/22 14:02:00
8/10/22 14:08:11 Updater: Auto-update is current for class MINOR.
8/24/22 03:40:50 Updater: update tables from 0.0.5 to 0.0.6
8/31/22 20:33:18 WiFi disconnected.
8/31/22 20:34:23 WiFi connected. SSID=Lulu_2.4, IP=192.168.0.53, channel=10, RSSI -61db
9/11/22 16:21:00 WiFi disconnected.
9/11/22 16:46:45 WiFi connected. SSID=Lulu_2.4, IP=192.168.0.53, channel=10, RSSI -65db
9/11/22 16:46:52 Updater: Invalid response from server. HTTPcode: -4
9/15/22 09:25:15 WiFi disconnected.
9/15/22 10:25:15 WiFi disconnected more than 60 minutes, restarting.

** Restart **

SD initialized.
9/15/22 14:25:17z Real Time Clock is running. Unix time 1663251917
9/15/22 14:25:17z Reset reason: Software/System restart
9/15/22 14:25:17z Trace: 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:2, 18:3, 18:4, 18:5, 1:6[6], 1:1[14], 1:2, 9:0, 9:0, 8:4, 8:6, 8:8, 8:9, 1:2, 1:3, 1:3, 1:6[1], 1:6[3], 1:5[21], 1:6[4], 21:0, 21:2
9/15/22 14:25:17z ESP8266 ID: 15876047, RTC PCF8523 (68)
9/15/22 14:25:17z IoTaWatt 5.0, Firmware version 02_07_05
9/15/22 14:25:17z SPIFFS mounted.
9/15/22 10:25:17 Local time zone: -5:00, using DST/BST when in effect.
9/15/22 10:25:17 device name: IotaWatt
9/15/22 10:25:17 HTTP server started
9/15/22 10:25:17 timeSync: service started.
9/15/22 10:25:17 statService: started.
9/15/22 10:25:17 dataLog: service started.
9/15/22 10:25:17 dataLog: Last log entry 09/15/22 10:25:15
9/15/22 10:25:22 historyLog: service started.
9/15/22 10:25:22 historyLog: Last log entry 09/15/22 10:25:00
9/15/22 11:06:17 WiFi connected. SSID=Lulu_2.4, IP=192.168.1.100, channel=6, RSSI -64db
9/15/22 11:06:17 MDNS responder started for hostname IotaWatt
9/15/22 11:06:17 LLMNR responder started for hostname IotaWatt
9/15/22 11:06:17 Updater: service started. Auto-update class is MINOR
9/15/22 11:06:18 Updater: Auto-update is current for class MINOR.
9/15/22 11:26:49 WiFi disconnected.
9/15/22 11:27:15 WiFi connected. SSID=Lulu_2.4, IP=192.168.1.100, channel=6, RSSI -67db
9/18/22 16:37:10 WiFi disconnected.
9/18/22 16:59:34 WiFi connected. SSID=Lulu_2.4, IP=192.168.1.100, channel=1, RSSI -55db
9/22/22 11:49:54 WiFi disconnected.
9/22/22 12:01:19 WiFi connected. SSID=Lulu_2.4, IP=192.168.1.100, channel=6, RSSI -52db

I don’t see anything going on here. How often does this happen, and is there anything in particular that makes it happen?

This occurs about 1 out of 7 queries I’d guess since the new wifi router. It’s random, I don’t know of any way to trigger it reliably. I notice in the router settings that both the 2.4 ghz and 5 ghz bands have the same SSID and I don’t see any way to separate that. Could that be a problem? The SSID has 2.4 in the name but that is only because it was easier to make the SSID the same as it was in the old router so I wouldn’t have to change SSID in all my devices.

I have no problems with both bands using the same SSID.