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

Receiving error "Cannot read property 'date' of undefined #256

Open
fischgeek opened this issue Nov 2, 2019 · 3 comments
Open

Receiving error "Cannot read property 'date' of undefined #256

fischgeek opened this issue Nov 2, 2019 · 3 comments

Comments

@fischgeek
Copy link

fischgeek commented Nov 2, 2019

Park
WDW Florida

Context

  • themeparks version used: 5.1.28
  • Operating System: Windows Server 2012

How to find your themeparks version: Installed latest with npm | npm list | find "themeparks"

Describe the bug
Running into an issue where the date roll-over might be the culprit. I was going smooth until the parks time of day rolled over to the next day (12:00am) and I was still on the previous day (1hr timezone difference). All calls failed on line 96 of disneyworldapibase.js.

@cubehouse
Copy link
Owner

Can you share a little about your setup? Are you keeping the NodeJS process running between requests and making sure the database cache file isn't deleted each time an update it requested?

@fischgeek
Copy link
Author

fischgeek commented Nov 2, 2019

Sure.
I don't keep the NodeJS process running. I run a script on demand and the database is not deleted each time. I can tell because when it pulls from cache it's faster.

Again, this only seems to happen at night when the park hours have rolled over to the next day and I'm still on the previous day. I will try again tonight and update you if so.

@fischgeek
Copy link
Author

Crap. Fell asleep. Maybe if we just put a bail out in there if GetCurrentParkSchedule() returns null?

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

2 participants