cubehouse / themeparks

Unofficial API for accessing ride wait times and schedules for Disneyland, Disney World, Universal Studios, and many more parks
MIT License
540 stars 126 forks source link

Universal Parks "UnhandledPromiseRejectionWarning" #226

Closed thomasstoeckert closed 4 years ago

thomasstoeckert commented 4 years ago

Park Universal Studios Hollywood, Universal Studios Florida, Islands of Adventure, Volcano Bay, Universal Studios Japan.

Context

Describe the bug Attempting to call "GetWaitTimes" on any of the above parks returns an error, with Node directly reporting the error

(node:2484) UnhandledPromiseRejectionWarning: Error: 401: {
  "type": "Buffer",
  "data": []
}
    at HTTP.then (C:\Users\Thoma\Programming\NodeJS\LogRideWaitTimes\logride-wait-times\node_modules\themeparks\lib\universal\universalparkbase.js:109:33)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:2484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8)
thomasstoeckert commented 4 years ago

Working Now. Not Sure why, but it is.

thomasstoeckert commented 4 years ago

Nope. It didn't work. I was mistaken.

thomasstoeckert commented 4 years ago

And it's working now. The only park which seems to maintain this issue for me is Universal Studios Japan, but who knows.