lbussy/keg-cop

Double API Tap on some pages

lbussy opened this issue · 2 comments

lbussy commented

Not any limiting issue, but it's network traffic we don;t need:

index.htm:

2023-04-13T16:14:13Z V: Sending /api/v1/info/secret/.
2023-04-13T16:14:13Z V: Sending /api/v1/info/secret/.
2023-04-13T16:14:13Z V: Sending /api/v1/info/sensors/.
2023-04-13T16:14:13Z V: Sending /api/v1/info/sensors/.
2023-04-13T16:14:14Z V: Sending /api/v1/config/theme/.
2023-04-13T16:14:14Z V: Sending /api/v1/config/theme/.

settings.htm:

2023-04-13T16:15:17Z V: Sending /api/v1/info/thatVersion/.
2023-04-13T16:15:17Z V: Sending /api/v1/info/thatVersion/.
2023-04-13T16:15:17Z V: Sending /api/v1/info/secret/.
2023-04-13T16:15:17Z V: Sending /api/v1/info/secret/.
2023-04-13T16:15:17Z V: Sending /api/v1/info/thisVersion/.
2023-04-13T16:15:17Z V: Sending /api/v1/info/thisVersion/.
2023-04-13T16:15:17Z V: Sending /api/v1/info/tempcontrol/.
2023-04-13T16:15:17Z V: Sending /api/v1/config/theme/.
2023-04-13T16:15:17Z V: Sending /api/v1/config/theme/.

temps.htm:

2023-04-13T16:16:27Z V: Sending /api/v1/info/sensors/.
2023-04-13T16:16:27Z V: Sending /api/v1/info/sensors/.
2023-04-13T16:16:28Z V: Sending /api/v1/info/secret/.
2023-04-13T16:16:28Z V: Sending /api/v1/info/secret/.
2023-04-13T16:16:28Z V: Sending /api/v1/config/settings/.
2023-04-13T16:16:28Z V: Sending /api/v1/config/theme/.
2023-04-13T16:16:28Z V: Sending /api/v1/config/theme/.

help.htm:

2023-04-13T16:17:28Z V: Sending /api/v1/config/theme/.
2023-04-13T16:17:28Z V: Sending /api/v1/config/theme/.

about.htm:

2023-04-13T16:17:55Z V: Sending /api/v1/info/secret/.
2023-04-13T16:17:55Z V: Sending /api/v1/info/secret/.
2023-04-13T16:17:55Z V: Sending /api/v1/info/thisVersion/.
2023-04-13T16:17:55Z V: Sending /api/v1/info/thisVersion/.
2023-04-13T16:17:55Z V: Sending /api/v1/info/uptime/.
2023-04-13T16:17:55Z V: Sending /api/v1/info/uptime/.
2023-04-13T16:17:55Z V: Sending /api/v1/info/resetreason/.
2023-04-13T16:17:55Z V: Sending /api/v1/info/resetreason/.
2023-04-13T16:17:55Z V: Sending /api/v1/config/theme/.
2023-04-13T16:17:55Z V: Sending /api/v1/config/theme/.
2023-04-13T16:17:56Z V: Sending /api/v1/info/heap/.
2023-04-13T16:17:56Z V: Sending /api/v1/info/heap/.
lbussy commented

Strangely, the double-tap seems to be on the controller - adding a console log on the Ajax query does not show it being called twice.

lbussy commented

It ended up not being a thing, it was crappy logging.