'BSONObj size: 19033121 (0x1226C21) is invalid. Size must be between 0 and 16793600(16MB) First element: operationTime: Timestamp(1619116787, 2)
all when I try to run my query on the server it's showing this error is there any way to fix this issue.
UnhandledPromiseRejectionWarning: MongoError: BSONObj size: 19033121 (0x1226C21) is invalid. Size must be between 0 and 16793600(16MB) First element: operationTime: Timestamp(1619116787, 2)
Apr 22 18:39:49 ip-10-0-2-119 web: at Connection.<anonymous> (/var/app/current/node_modules/mongoose/node_modules/mongodb/lib/core/connection/pool.js:451:61)
Apr 22 18:39:49 ip-10-0-2-119 web: at Connection.emit (events.js:310:20)
Apr 22 18:39:49 ip-10-0-2-119 web: at Connection.EventEmitter.emit (domain.js:482:12)
Apr 22 18:39:49 ip-10-0-2-119 web: at processMessage (/var/app/current/node_modules/mongoose/node_modules/mongodb/lib/core/connection/connection.js:451:10)
Apr 22 18:39:49 ip-10-0-2-119 web: at Socket.<anonymous> (/var/app/current/node_modules/mongoose/node_modules/mongodb/lib/core/connection/connection.js:620:15)
Apr 22 18:39:49 ip-10-0-2-119 web: at Socket.emit (events.js:310:20)
Apr 22 18:39:49 ip-10-0-2-119 web: at Socket.EventEmitter.emit (domain.js:482:12)
Apr 22 18:39:49 ip-10-0-2-119 web: at addChunk (_stream_readable.js:286:12)
Apr 22 18:39:49 ip-10-0-2-119 web: at readableAddChunk (_stream_readable.js:268:9)
Apr 22 18:39:49 ip-10-0-2-119 web: at Socket.Readable.push (_stream_readable.js:209:10)
Apr 22 18:39:49 ip-10-0-2-119 web: at TCP.onStreamRead (internal/stream_base_commons.js:186:23)
Solution 1:[1]
We need to create a indexes on mongo db tables. this problem is resolved
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Harish Verma |
