Webcore won't load ["Generated list of devices" slow and loading only one device at a time]


#1

Ever since the latest update, the webcore dashboard will not load. Accessing it through the ST smartapp list or registering a browser both yield nothing. I’ve rebuilt the cache multiple times, cleared cache in the mobile, but nothing has worked. Any suggestions?


#2

Are there errors in account.SmartThings.com Live Logging?


#3

Seems like it’s generating a list for all 171 of my devices and it’s just taking an extremely long time. I wonder if it’s just timing out and that’s when I get an error. I’ve never seen this before.


#4

Yeah something is extremely slow there. It loads devices for up to 10 seconds per request but in your case it’s taking over 12 seconds just to load one device.

This particular behavior was released in 0.3.110 in 2019 since many were having trouble with all ~100 devices in one request timing out. I’ll take a look if there are any related changes since then.


#5

Well it got to 73 devices and then the dashboard loaded. I exited out, and fired up webcore again and it showed the dashboard almost instantaneously. No idea what changed, but it seems to be okay now. Thanks a lot, Ian.


#6

That’s good to hear. I’m taking a look now to see what might have happened between starting and stopping that timer. It looks like probably a temporary platform delay loading any device.


#7

Well, here we go again. I even saved all my piston backup bin codes, deleted webcore, installed it all again, and tried fresh.
.


#8

I also get this message once I finally get into the dashboard.


#9

If you are willing to debug this, what happens if you extend the timeout from 10 seconds to 15 seconds? Find this line 189 in the webCoRE Storage smart app and change the 10000 to 15000:

// Stop after 10 seconds
if (idx < devices.size() - 1 && now() - time > 10000) {

#10

Fired right up with no errors.


#11

Thanks but how many “generated list of … devices” were logged? I’m curious whether this is something like if allowed to load for 15 seconds it loads 5 or 10 per page or if it gets all 170. Seems like the 10 second delay is all up-front collecting the devices from the smart app settings…

ST mobile app > SmartApps > webCoRE > Settings > Available devices > Available devices > back will force the dashboard to reload your devices.


#12

It hung for about the 15 seconds but then went right in with no error.


#13

Perfect! For now I recommend leaving that 15 second tweak in place. I don’t have a good idea how to solve this otherwise. Usually the problem was that specific devices like Echo Speaks had a ton of data and would time out but seeing this much delay up front is unexpected…


#14

Greatly appreciate the prompt response! Thanks so much.