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

TypeError: Cannot read property 'key' of undefined #318

Open
freezy opened this issue Jun 3, 2019 · 0 comments
Open

TypeError: Cannot read property 'key' of undefined #318

freezy opened this issue Jun 3, 2019 · 0 comments

Comments

@freezy
Copy link
Member

freezy commented Jun 3, 2019

View details in Rollbar: https://rollbar.com/freezy/server/items/49/


TypeError: Cannot read property 'key' of undefined
  File "/var/www/server/production/v3.2.2/src/app/common/api.ts", line 505, in ProfileApi.getLockKeys
    		const backoffNumKey = `${backoff.key}_delay_num:${ipAddress}`;
  File "/var/www/server/production/v3.2.2/src/app/common/api.ts", line 208, in ProfileApi.ipLockAssert
    		const backoffLockKey = this.getLockKeys(ctx, backoff)[1];
  File "/var/www/server/production/v3.2.2/src/app/profile/profile.api.ts", line 247, in ProfileApi.requestResetPassword
    		await this.ipLockAssert(ctx, config.vpdb.passwordResetBackoff);
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/node_modules/koa-compose/index.js", line 44, in dispatch
            return Promise.resolve(fn(context, function next () {
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/node_modules/koa-compose/index.js", line 45, in next
              return dispatch(i + 1)
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 346, in <unknown>
            return next();
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/node_modules/koa-compose/index.js", line 44, in dispatch
            return Promise.resolve(fn(context, function next () {
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/node_modules/koa-compose/index.js", line 36, in <unknown>
        return dispatch(0)
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 351, in dispatch
        return compose(layerChain)(ctx, next);
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 407, in allowedMethods
        return next().then(function() {
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 332, in dispatch
        if (!matched.route) return next();
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 407, in allowedMethods
        return next().then(function() {
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 332, in dispatch
        if (!matched.route) return next();
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 407, in allowedMethods
        return next().then(function() {
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 332, in dispatch
        if (!matched.route) return next();
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 407, in allowedMethods
        return next().then(function() {
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 332, in dispatch
        if (!matched.route) return next();
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 407, in allowedMethods
        return next().then(function() {
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 332, in dispatch
        if (!matched.route) return next();
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 407, in allowedMethods
        return next().then(function() {
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 332, in dispatch
        if (!matched.route) return next();
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 407, in allowedMethods
        return next().then(function() {
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 332, in dispatch
        if (!matched.route) return next();
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 407, in allowedMethods
        return next().then(function() {
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(context, dispatch.bind(null, i + 1)));
  File "/var/www/server/production/v3.2.2/node_modules/koa-router/lib/router.js", line 332, in dispatch
        if (!matched.route) return next();
  File "/var/www/server/production/v3.2.2/node_modules/koa-compose/index.js", line 42, in dispatch
            return Promise.resolve(fn(co
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

1 participant