illinois / queue

A microservice queue for holding open office hours
University of Illinois/NCSA Open Source License
82 stars 37 forks source link

Server error when adding course staff #92

Closed nwalters512 closed 5 years ago

nwalters512 commented 6 years ago

Just cataloging this for now so I don't forget about it, still need to figure out root cause and how to reproduce. Occurred when adding myself as queue staff in dev mode with MySQL as db.

Unhandled rejection TypeError: Cannot read property 'queueId' of null
    at ActiveStaff.findOne.then.activeStaff (/Users/nathan/git/queue/socket/server.js:74:31)
    at tryCatcher (/Users/nathan/git/queue/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/nathan/git/queue/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/nathan/git/queue/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/nathan/git/queue/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/nathan/git/queue/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/Users/nathan/git/queue/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/Users/nathan/git/queue/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/Users/nathan/git/queue/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:781:20)
    at tryOnImmediate (timers.js:743:5)
    at processImmediate [as _immediateCallback] (timers.js:714:5)