[GH-ISSUE #633] [WhoScored] javascript undefined args when fetching data #124

Closed
opened 2026-03-02 15:56:00 +03:00 by kerem · 2 comments
Owner

Originally created by @alexbarnsley on GitHub (Jul 7, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/633

When fetching the data from whoscored.com, I've started receiving the below error. Upon a little investigation, it seems the var path has been changed again (based on the recent PR #618)

selenium.common.exceptions.JavascriptException: Message: javascript error: Cannot read properties of undefined (reading 'args')

As you can see in the screenshot below, the formatting seems to have changed compared to what is being looked for, and I've not been around long enough to know what the correct data should look like?:

image

In case it's relevant only for a specific match, it's occurring on /Matches/1245647/Live

Versions:

soccerdata: 1.8.1
selenium: 4.22.0
undetected-chromedriver: 3.5.5

P.S. Great work with this library!

Thanks,

Alex

Originally created by @alexbarnsley on GitHub (Jul 7, 2024). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/633 When fetching the data from whoscored.com, I've started receiving the below error. Upon a little investigation, it seems the `var` path has been changed _again_ (based on the recent PR #618) ``` selenium.common.exceptions.JavascriptException: Message: javascript error: Cannot read properties of undefined (reading 'args') ``` As you can see in the screenshot below, the formatting seems to have changed compared to what is being looked for, and I've not been around long enough to know what the correct data should look like?: ![image](https://github.com/probberechts/soccerdata/assets/8069294/a3f101b9-bc07-48f3-b152-72d0fb03ffa2) In case it's relevant only for a specific match, it's occurring on `/Matches/1245647/Live` Versions: **soccerdata**: 1.8.1 **selenium**: 4.22.0 **undetected-chromedriver**: 3.5.5 P.S. Great work with this library! Thanks, Alex
kerem closed this issue 2026-03-02 15:56:00 +03:00
Author
Owner

@probberechts commented on GitHub (Jul 8, 2024):

There is no event data for the game you are referring to. You can see this because there is no widget with the line-ups, chalkboard, etc. under the "Match Centre" tab.

It seems that I forgot to update the error-handling logic in #618. I assume there will be no issues for games for which event data is available.

<!-- gh-comment-id:2213532508 --> @probberechts commented on GitHub (Jul 8, 2024): There is no event data for the game you are referring to. You can see this because there is no widget with the line-ups, chalkboard, etc. under the "Match Centre" tab. It seems that I forgot to update the error-handling logic in #618. I assume there will be no issues for games for which event data is available.
Author
Owner

@alexbarnsley commented on GitHub (Jul 9, 2024):

That's good to know. I tested using the branch/PR and it all seems to be working without issues now, thanks!

<!-- gh-comment-id:2217214480 --> @alexbarnsley commented on GitHub (Jul 9, 2024): That's good to know. I tested using the branch/PR and it all seems to be working without issues now, thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/soccerdata#124
No description provided.