Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix save fallback msg in mongodb #692

Merged

Conversation

Jhonarias13
Copy link
Contributor

Que tipo de Pull Request es?

  • Mejoras
  • Bug
  • Docs / tests

Descripción

El problema se presenta usando la siguiente configuración:

  • whatsappweb.js
  • mongodb

Al intentar usar el método fallBack() salta el siguiente error en la consola:

✘ uncaughtExceptionSat, 04 Mar 2023 03:04:28 GMT
E11000 duplicate key error collection: adgency.history index: _id_ dup key: { _id: ObjectId('6402b52e5d7202717ca7ecf2') }
MongoBulkWriteError: E11000 duplicate key error collection: adgency.history index: _id_ dup key: { _id: ObjectId('6402b52e5d7202717ca7ecf2') }
    at UnorderedBulkOperation.handleWriteError (/Users/jhonfreimanarias/Documents/work/omni_bot/node_modules/mongodb/lib/bulk/common.js:927:22)
    at UnorderedBulkOperation.handleWriteError (/Users/jhonfreimanarias/Documents/work/omni_bot/node_modules/mongodb/lib/bulk/unordered.js:17:22)
    at resultHandler (/Users/jhonfreimanarias/Documents/work/omni_bot/node_modules/mongodb/lib/bulk/common.js:406:27)
    at /Users/jhonfreimanarias/Documents/work/omni_bot/node_modules/mongodb/lib/utils.js:349:28
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Forma parte de este proyecto.

@leifermendez leifermendez changed the base branch from main to dev March 4, 2023 16:45
@leifermendez
Copy link
Member

@Jhonarias13 excelente el aporte me ayudo a entender el problema. Voy a mejorar esta parte del codigo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants