No puedo cargar documentos grandes en couchDB. Estoy usando Node.js para cargar con la ayuda de ActiveMQ. Se están cargando documentos pequeños. Intenté cargar un documento de 30 MB, pero falló con la siguiente excepción:
(node:28) UnhandledPromiseRejectionWarning: Error: document_too_large at Request._callback (/app/node_modules/**/multitenant/node_modules/nano/lib/nano.js:151:15) at Request.self.callback (/app/node_modules/request/request.js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request.<anonymous> (/app/node_modules/request/request.js:1154:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at IncomingMessage.<anonymous> (/app/node_modules/request/request.js:1076:12) at Object.onceWrapper (events.js:313:30) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) (node:28) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:28) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.La respuesta está justo ahí, en la primera línea de la pila de errores.
(nodo: 28) UnhandledPromiseRejectionWarning: Error: document_too_large
El tamaño de documento máximo predeterminado para couchDB es de 8000000 bytes, que está muy por debajo de los 30 mb.
FWIW 30mb es una gran cantidad de datos, ¿está seguro de que los datos no deberían ser un archivo adjunto? Consulte este SO Q/A relacionado .