cubehouse / themeparks

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

Error 401 requesting data from WDW parks #282

Closed Dag0n closed 4 years ago

Dag0n commented 4 years ago

Park WDW Parks

Context

Describe the bug When running the example code GetWaitTimes() fails with a 401 error. Tested on two seperate connections.

Output

Error getting initial state: Error: Initial state status code: 401 [{"error":"Unauthorized","reason":"Invalid login"}]
Error: Initial state status code: 401 [{"error":"Unauthorized","reason":"Invalid login"}]
    at C:\testing\node_modules\themeparks\lib\disney\couchbaseChannel.js:436:33
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
cmlara commented 4 years ago

Looks like the old credentials (look to be over 2 years old) are no longer being accepted.

I'm not sure if there is a reason it shouldn't be done with these credentials, but these are the ones used by the WDW 5.11 My Experience Android App and the Disneyland 5.11 Android (Both released April 2nd 2020)

change in lib/disney/couchbaseChannelDisney.js

      user: 'DPECP-MOBILE.WDW.ANDROID-PROD',
      password: 'Dhrxs2duQxgbV6y2',