@anon34731316 here’s the whole log with NODE_ENV=development
set for two successive occurences:
OPTIONS /forest/users?fields%5Busers%5D=fullname%2Cemail%2Cgender%2Cbirthdate%2Cid&page%5Bnumber%5D=1&page%5Bsize%5D=50&searchExtended=0&sort=-createdAt&timezone=Europe%2FParis 204 0.229 ms - 0
Executing (default): SELECT "uuid", "id", "roles", "gender", "first_name", "last_name", "email", "email_verified_at", "password", "birthdate", "newsletters", "accepted_tos_at", "booking_steps", "created_at" AS "createdAt", "updated_at" AS "updatedAt" FROM "users" AS "users" ORDER BY "users"."created_at" DESC LIMIT 50 OFFSET 0; {
plain: false,
raw: false,
logging: [Function: log],
where: '',
order: [ [ 'created_at', [Literal] ] ],
offset: 0,
limit: 50,
hooks: true,
rejectOnEmpty: false,
originalAttributes: [
'uuid', 'id',
'roles', 'gender',
'first_name', 'last_name',
'email', 'email_verified_at',
'password', 'birthdate',
'newsletters', 'accepted_tos_at',
'booking_steps', 'createdAt',
'updatedAt'
],
attributes: [
'uuid',
'id',
'roles',
'gender',
'first_name',
'last_name',
'email',
'email_verified_at',
'password',
'birthdate',
'newsletters',
'accepted_tos_at',
'booking_steps',
[ 'created_at', 'createdAt' ],
[ 'updated_at', 'updatedAt' ]
],
tableNames: [ 'users' ],
type: 'SELECT',
model: users
}
[forest] 🌳🌳🌳 Unexpected error: relation "users" does not exist
SequelizeDatabaseError: relation "users" does not exist
at Query.formatError (/home/node/app/node_modules/sequelize/lib/dialects/postgres/query.js:366:16)
at /home/node/app/node_modules/sequelize/lib/dialects/postgres/query.js:72:18
From previous event:
at Query.run (/home/node/app/node_modules/sequelize/lib/dialects/postgres/query.js:64:23)
at /home/node/app/node_modules/sequelize/lib/sequelize.js:645:29
From previous event:
at /home/node/app/node_modules/sequelize/lib/sequelize.js:645:12
From previous event:
at /home/node/app/node_modules/sequelize/lib/sequelize.js:641:10
at /home/node/app/node_modules/retry-as-promised/index.js:70:21
at new Promise (<anonymous>)
at retryAsPromised (/home/node/app/node_modules/retry-as-promised/index.js:60:10)
at /home/node/app/node_modules/sequelize/lib/sequelize.js:631:30
From previous event:
at Sequelize.query (/home/node/app/node_modules/sequelize/lib/sequelize.js:580:23)
at QueryInterface.select (/home/node/app/node_modules/sequelize/lib/query-interface.js:1121:27)
at /home/node/app/node_modules/sequelize/lib/model.js:1756:34
at bound (domain.js:427:14)
at runBound (domain.js:440:12)
at processImmediate (internal/timers.js:461:21)
at process.topLevelDomainCallback (domain.js:138:15)
at process.callbackTrampoline (internal/async_hooks.js:124:14)
From previous event:
at Function.findAll (/home/node/app/node_modules/sequelize/lib/model.js:1754:8)
at /home/node/app/node_modules/forest-express-sequelize/dist/services/resources-getter.js:167:20
OPTIONS /forest/users/count?fields%5Busers%5D=fullname%2Cemail%2Cgender%2Cbirthdate%2Cid&searchExtended=0&timezone=Europe%2FParis 204 0.278 ms - 0
Executing (default): SELECT count("users"."uuid") AS "count" FROM "users" AS "users"; {
plain: true,
raw: true,
logging: [Function: log],
where: '',
hooks: true,
dataType: INTEGER {
options: {},
_length: undefined,
_zerofill: undefined,
_decimals: undefined,
_precision: undefined,
_scale: undefined,
_unsigned: undefined
},
includeIgnoreAttributes: false,
limit: null,
offset: null,
order: null,
attributes: [ [ [Fn], 'count' ] ],
type: 'SELECT'
}
[forest] 🌳🌳🌳 Unexpected error: relation "users" does not exist
SequelizeDatabaseError: relation "users" does not exist
at Query.formatError (/home/node/app/node_modules/sequelize/lib/dialects/postgres/query.js:366:16)
at /home/node/app/node_modules/sequelize/lib/dialects/postgres/query.js:72:18
From previous event:
at Query.run (/home/node/app/node_modules/sequelize/lib/dialects/postgres/query.js:64:23)
at /home/node/app/node_modules/sequelize/lib/sequelize.js:645:29
From previous event:
at /home/node/app/node_modules/sequelize/lib/sequelize.js:645:12
From previous event:
at /home/node/app/node_modules/sequelize/lib/sequelize.js:641:10
at /home/node/app/node_modules/retry-as-promised/index.js:70:21
at new Promise (<anonymous>)
at retryAsPromised (/home/node/app/node_modules/retry-as-promised/index.js:60:10)
at /home/node/app/node_modules/sequelize/lib/sequelize.js:631:30
From previous event:
at Sequelize.query (/home/node/app/node_modules/sequelize/lib/sequelize.js:580:23)
at QueryInterface.rawSelect (/home/node/app/node_modules/sequelize/lib/query-interface.js:1163:27)
at Function.aggregate (/home/node/app/node_modules/sequelize/lib/model.js:1992:32)
at /home/node/app/node_modules/sequelize/lib/model.js:2044:19
at bound (domain.js:427:14)
at runBound (domain.js:440:12)
at processImmediate (internal/timers.js:461:21)
at process.topLevelDomainCallback (domain.js:138:15)
at process.callbackTrampoline (internal/async_hooks.js:124:14)
From previous event:
at Function.count (/home/node/app/node_modules/sequelize/lib/model.js:2028:8)
at /home/node/app/node_modules/forest-express-sequelize/dist/services/resources-getter.js:209:20