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

MongoError: topology was destroyed #408

Open
freezy opened this issue Jan 11, 2020 · 0 comments
Open

MongoError: topology was destroyed #408

freezy opened this issue Jan 11, 2020 · 0 comments

Comments

@freezy
Copy link
Member

freezy commented Jan 11, 2020

View details in Rollbar: https://rollbar.com/freezy/server/items/57/


MongoError: topology was destroyed
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/db_ops.js", line 395, in executeCommand
        return callback(new MongoError('topology was destroyed'));
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/find_and_modify.js", line 90, in FindOneAndUpdateOperation.execute
        executeCommand(coll.s.db, queryObject, options, (err, result) => {
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/operations/execute_operation.js", line 83, in executeOperation
            return operation.execute(handler);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/node_modules/mongodb/lib/collection.js", line 1679, in Collection.findOneAndUpdate
      return executeOperation(this.s.topology, findOneAndUpdateOperation, callback);
  File "NativeCollection.(anonymous function) [as findOneAndUpdate] (/var/www/server/production/v2.3.8/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js", line 166, in <unknown>
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/lib/query.js", line 3541, in model.Query.Query._findAndModify
          collection[updateMethod](castedQuery, this._update, opts, _wrapThunkCallback(_this, function(error, res) {
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/lib/query.js", line 3001, in model.Query.<anonymous>
      this._findAndModify('update', callback);
  File "/var/www/server/production/v2.3.8/node_modules/mongoose/lib/helpers/query/wrapThunk.js", line 16, in model.Query._wrappedThunk [as _findOneAndUpdate]
        fn.call(this, cb);
  File "/var/www/server/production/v2.3.8/node_modules/kareem/index.js", line 369, in process.nextTick
          process.nextTick(() => fn.apply(this, arguments));
  File "internal/process/next_tick.js", line 132, in _combinedTickCallback
  File "internal/process/next_tick.js", line 181, in process._tickCallback
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

No branches or pull requests

1 participant