Mrtenz / typeorm-store

A TypeORM-based store for express-session.
MIT License
16 stars 12 forks source link

Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters #19

Open oq-x opened 2 years ago

oq-x commented 2 years ago

Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters at new ObjectID (/home/container/node_modules/bson/lib/bson/objectid.js:59:11) at MongoEntityManager. (/home/container/node_modules/typeorm/entity-manager/MongoEntityManager.js:183:84) at step (/home/container/node_modules/tslib/tslib.js:143:27) at Object.next (/home/container/node_modules/tslib/tslib.js:124:57) at /home/container/node_modules/tslib/tslib.js:117:75 at new Promise () at __awaiter (/home/container/node_modules/tslib/tslib.js:113:16) at MongoEntityManager.findOne (/home/container/node_modules/typeorm/entity-manager/MongoEntityManager.js:173:38) at MongoRepository.findOne (/home/container/node_modules/typeorm/repository/MongoRepository.js:57:29) at e.TypeormStore.get (/home/container/node_modules/typeorm-store/lib/typeormStore.js:1:1636)