Project

General

Profile

Actions

Bug #7963

closed

[regression] - Backend crash

Added by Olivier Bitsch 15 days ago. Updated 1 day ago.

Status:
Done
Priority:
Urgent
Category:
-
Target version:
Start date:
01/07/2025
Due date:
% Done:

0%

Estimated time:

Description

Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]: OperationalError [UsageError]: Invalid criteria.
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]: Details:
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:   Cannot `findOne()` without specifying a more specific `where` clause (the provided `where` clause, `{}`, is too broad).  (If you want to work around this, use `.find().limit(1)`.)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:     at Strategy._verify (/usr/share/hcw-athome/backend/config/passport.js:187:29)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:     ... 14 lines matching cause stack trace ...
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:     at alwaysAllow (/usr/share/hcw-athome/backend/node_modules/sails/lib/hooks/policies/index.js:178:16) {
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:   cause: Error [UsageError]: Invalid criteria.
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:   Details:
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:     Cannot `findOne()` without specifying a more specific `where` clause (the provided `where` clause, `{}`, is too broad).  (If you want to work around this, use `.find().limit(1)`.)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:   
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at Strategy._verify (/usr/share/hcw-athome/backend/config/passport.js:187:29)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at Strategy.authenticate (/usr/share/hcw-athome/backend/node_modules/passport-custom/lib/strategy.js:60:8)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at attempt (/usr/share/hcw-athome/backend/node_modules/passport/lib/middleware/authenticate.js:378:16)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at authenticate (/usr/share/hcw-athome/backend/node_modules/passport/lib/middleware/authenticate.js:379:7)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at Object.loginSms [as auth/loginsms] (/usr/share/hcw-athome/backend/api/controllers/AuthController.js:426:7)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at /usr/share/hcw-athome/backend/node_modules/sails/lib/router/bind.js:248:46
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at routeTargetFnWrapper (/usr/share/hcw-athome/backend/node_modules/sails/lib/router/bind.js:395:9)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at Layer.handle [as handle_request] (/usr/share/hcw-athome/backend/node_modules/express/lib/router/layer.js:95:5)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at next (/usr/share/hcw-athome/backend/node_modules/express/lib/router/route.js:149:13)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at Route.dispatch (/usr/share/hcw-athome/backend/node_modules/express/lib/router/route.js:119:3)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at Layer.handle [as handle_request] (/usr/share/hcw-athome/backend/node_modules/express/lib/router/layer.js:95:5)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at /usr/share/hcw-athome/backend/node_modules/express/lib/router/index.js:284:15
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at Function.process_params (/usr/share/hcw-athome/backend/node_modules/express/lib/router/index.js:346:12)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at next (/usr/share/hcw-athome/backend/node_modules/express/lib/router/index.js:280:10)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at next (/usr/share/hcw-athome/backend/node_modules/express/lib/router/route.js:141:14)
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:       at alwaysAllow (/usr/share/hcw-athome/backend/node_modules/sails/lib/hooks/policies/index.js:178:16) {
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:     code: 'E_INVALID_CRITERIA',
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:     details: 'Cannot `findOne()` without specifying a more specific `where` clause (the provided `where` clause, `{}`, is too broad).  (If you want to work around this, use `.find().limit(1)`.)'
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:   },
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:   isOperational: true,
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:   code: 'E_INVALID_CRITERIA',
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]:   details: 'Cannot `findOne()` without specifying a more specific `where` clause (the provided `where` clause, `{}`, is too broad).  (If you want to work around this, use `.find().limit(1)`.)'
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]: }
Jan 07 10:06:46 VM-5967ed59-1e0d-4dfd-9be1-409494a3965d node[124645]: Node.js v18.17.1
Actions

Also available in: Atom PDF