Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about mlbGames.get() #1

Open
mattfbaldwin opened this issue Apr 21, 2022 · 1 comment
Open

Question about mlbGames.get() #1

mattfbaldwin opened this issue Apr 21, 2022 · 1 comment

Comments

@mattfbaldwin
Copy link

It seems that every once in a while, the API returns the array of games as undefined. Is this an occasional occurence, or is this an inability for the Mlbgames intializer to connect?

`const mlbgames = new Mlbgames(options);

mlbgames.get((err, games) => {
...doStuff
}`

Error while mapping over games object
TypeError: Cannot read property 'map' of undefined

Usually this package works for me, but occasionally it doesn't even fetch any games.

@mattfbaldwin
Copy link
Author

It seems like gd2.mlb.com might be the issue when it tries to find resulting JSON files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant