You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Message: Expired nonce
Stack: Error: Expired nonce
at /Users/jason/oss/ims-lti/lib/provider.js:204:27
at MemoryNonceStore.isNew (/Users/jason/oss/ims-lti/lib/memory-nonce-store.js:82:16)
at Provider._valid_oauth (/Users/jason/oss/ims-lti/lib/provider.js:200:30)
at Provider.valid_request (/Users/jason/oss/ims-lti/lib/provider.js:169:19)
at Provider.valid_request (/Users/jason/oss/ims-lti/lib/provider.js:88:59)
at /Users/jason/oss/ims-lti/test/Provider.coffee:326:19
at /Users/jason/oss/ims-lti/lib/provider.js:207:18
at /Users/jason/oss/ims-lti/lib/memory-nonce-store.js:98:20
at MemoryNonceStore.setUsed (/Users/jason/oss/ims-lti/lib/memory-nonce-store.js:117:14)
at MemoryNonceStore.isNew (/Users/jason/oss/ims-lti/lib/memory-nonce-store.js:85:19)
at Provider._valid_oauth (/Users/jason/oss/ims-lti/lib/provider.js:200:30)
at Provider.valid_request (/Users/jason/oss/ims-lti/lib/provider.js:169:19)
at Provider.valid_request (/Users/jason/oss/ims-lti/lib/provider.js:88:59)
at Context.<anonymous> (/Users/jason/oss/ims-lti/test/Provider.coffee:323:17)
at callFnAsync (/Users/jason/oss/ims-lti/node_modules/mocha/lib/runnable.js:349:8)
at Test.Runnable.run (/Users/jason/oss/ims-lti/node_modules/mocha/lib/runnable.js:301:7)
at Runner.runTest (/Users/jason/oss/ims-lti/node_modules/mocha/lib/runner.js:422:10)
at /Users/jason/oss/ims-lti/node_modules/mocha/lib/runner.js:528:12
at next (/Users/jason/oss/ims-lti/node_modules/mocha/lib/runner.js:342:14)
at /Users/jason/oss/ims-lti/node_modules/mocha/lib/runner.js:352:7
at next (/Users/jason/oss/ims-lti/node_modules/mocha/lib/runner.js:284:14)
at Immediate.<anonymous> (/Users/jason/oss/ims-lti/node_modules/mocha/lib/runner.js:320:5)
at runCallback (timers.js:651:20)
at tryOnImmediate (timers.js:624:5)
at processImmediate [as _immediateCallback] (timers.js:596:5)
This can cause issues if calling code is expecting to find a useful stack trace or is using something like nested error stacks. There might be other subtle differences, too, but the lack of a stack trace is the one that puzzled me today.
It seems like the class inheritance isn't working as expected? It could be related to this coffeescript bug, but I know literally nothing about coffeescript, so hard to tell.
The text was updated successfully, but these errors were encountered:
It looks like the error classes don't behave like a Javascript Error:
which will print out:
vs changing this line to:
which will print out:
This can cause issues if calling code is expecting to find a useful stack trace or is using something like nested error stacks. There might be other subtle differences, too, but the lack of a stack trace is the one that puzzled me today.
It seems like the class inheritance isn't working as expected? It could be related to this coffeescript bug, but I know literally nothing about coffeescript, so hard to tell.
The text was updated successfully, but these errors were encountered: