Posted by hughesjr on 4/8/2022 12:20:00 PM (view original):
Posted by Basketts on 4/8/2022 12:08:00 PM (view original):
Unfortunately, Google Sheets doesn't give you much in the form of a debug log for the importhtml function. It just occasionally fails similar to your java program.
Right, and the thing is, I never have any problem loading the web pages in my web browser. So, whatever the problem is, Chrome and Edge (or Firefox) can get content back just fine from WIS.
So, the problem is almost certainly with the limitations of the client (ie, the program or sheet making the request). Sheets and scraping programs are not nearly as robust and web browsers in handing things like redirects from proxy servers to back end machines .. OR packet size changes, etc.
Also, programs and sheets can identify themselves as NOT BEING web browsers and filtering software sometimes treat them differently.
i occasionally have issues via browser. one thing that i used to get a lot, but only saw once in the past year or two - and my browser tabs were like, unreasonable even by my standards, i think i had 300 or something - so it mighta been on my end purely. but what i saw was, the entire color scheme of my team was radically different. all the data was there, but the colors like for the banner at the top and how those colors are woven into the conference standings and all that stuff, it was all different. this used to happen fairly often, like most folks had seen it once or twice at least, i'm guessing. we figured something didn't finish making it over, style sheets related or whatever.
one i have seen a few times recently though, and when i didn't have an overloaded chrome/PC - i will pull up the team popup page, and it will look like it finished loading, but it doesn't. all the data will be there, but i won't be able to sort any of the columns, and then i'll realize the spinner is still spinning. sometimes it finishes, sometimes it doesn't. a simple reload generally resolves it promptly, even clicking on another tab i think? so i sort of question if this happens and folks just don't realize it. (all of these things, i kinda wonder, is the WIS side not flushing and waiting for the flush to complete before closing the connection, something along those lines... which just normal differences in clients and internet connections, time of day / load too, could cause to manifest much more or less in various circumstances)
but i do agree with you. i think we need to dig into the client side, more. see what the spread sheet is struggling with. i run that java dynasty rankings program out of the cloud, but its a crappy little VM, it could be the problem. but at least it means its not just my PC. i figured if i could reproduce the issue there, i'd run the same program on my PC, and perhaps a dev machine at work too, to get a nice diversity of client setups and client networks involved.
i just haven't spent any time, been on vacation... but i will circle back and spend some time on this soon. i was hoping the dynasty rankings stuff would magically fix itself after some time, but it hasn't, so i really have been meaning to address the issues there, at least to catch them and re-download the pages to get clean results. but this part about your excel/chrome sheets having errors, got my interest, because i wonder if its all related? however, you guys seem to experience a frequency of failures... that i do not. so perhaps its completely unrelated. or perhaps the sheet just deals with the problem worse, so it manifests there more. i feel like it could be either way - but with the sheet being the place it seems to fail most regularly - i'm curious to see what is going on there.
4/11/2022 12:50 PM (edited)