magnusbakken / espn-fantasy-autopick

A Chrome extension that lets you automatically add active players to the current roster in an ESPN NBA/NHL fantasy league.
MIT License
12 stars 7 forks source link

Null exception #19

Open Vermanator opened 1 year ago

Vermanator commented 1 year ago
Screenshot 2023-11-01 at 12 14 48 PM

getting two null errors, first one is on startup 2nd is when i click Auto (week)

magnusbakken commented 1 year ago

Thanks for the report!

The first error in shared.js appears to come from ESPN's own code, or from another extension you have. I don't have a file called shared.js, and I actually can't see it in the browser Network tab at all when I load the page on my end.

The second error is from this extension. It's failing to read an element on the page correctly, which makes the process stop. I tested the "Auto (week)" button in my test league right now, and although I'm seeing some other timing issues that cause different problems (sigh), I'm not getting the error you're getting. Do you get the error consistently? It could very well be a bug in the extension, but it's also possible that some error in ESPN's code is causing the whole page to not load correctly, or that another extension you have is interfering somehow.

magnusbakken commented 1 year ago

It's specifically failing to read an HTML element on the following part of the page:

image

Do you see that row of weekdays on your page?