Closed mtbvang closed 4 years ago
Itβs hard to understand what the problem is. Can you make a minimal sample with your problem?
@RobinCK sorry for the delayed response. I noticed that the newest 1.5.0 version of the fixtures cli on one tenth of error output is being logged. I'll work on getting a minimal sample to you in the next couple of days.
(node:1100) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by)
Progress [ββββββββββββββββββββββββββββββββββββββββββββββββββ] 94% | ETA: 5s | 128/136 investLiquidityLog5d
at _async (/app/cs-backend/node_modules/bcryptjs/dist/bcrypt.js:214:46)
at /app/cs-backend/node_modules/bcryptjs/dist/bcrypt.js:223:17
at new Promise (<anonymous>)
at User.bcrypt.hash (/app/cs-backend/node_modules/bcryptjs/dist/bcrypt.js:222:20)
at internal/util.js:278:30
at new Promise (<anonymous>)
at User._hashAsync (internal/util.js:277:12)
at _loop_1 (/app/cs-backend/src/TransformOperationExecutor.ts:154:47)
at TransformOperationExecutor.transform (/app/cs-backend/node_modules/class-transformer/TransformOpera)
at _loop_1 (/app/cs-backend/src/TransformOperationExecutor.ts:246:43)
(node:1100) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by)
(node:1100) UnhandledPromiseRejectionWarning: Error: Illegal arguments: function, undefined
at _async (/app/cs-backend/node_modules/bcryptjs/dist/bcrypt.js:214:46)
at /app/cs-backend/node_modules/bcryptjs/dist/bcrypt.js:223:17
at new Promise (<anonymous>)
at User.bcrypt.hash (/app/cs-backend/node_modules/bcryptjs/dist/bcrypt.js:222:20)
at internal/util.js:278:30
at new Promise (<anonymous>)
at User._hashAsync (internal/util.js:277:12)
at _loop_1 (/app/cs-backend/src/TransformOperationExecutor.ts:154:47)
at TransformOperationExecutor.transform (/app/cs-backend/node_modules/class-transformer/TransformOpera)
at _loop_1 (/app/cs-backend/src/TransformOperationExecutor.ts:246:43)
Your Environment
We have the following setup and when we run the fixtures we get pages of UnhandledPromiseRejectionWarning output. It seems to be related to bcryptjs. We have a target in a make file which calls a package.json script specifying which fixtures orm config file to use:
make file command that calls the package.json scirpt
npm run fixtures -- --config tests/ormconfig_docker-local.yml
package.json script
"fixtures": "rm -f .env && fixtures ./tests/fixtures --require=ts-node/register",
ormconfig_docker-local.yml