client-acd icon indicating copy to clipboard operation
client-acd copied to clipboard

Mongo::OperationFailure Unknown option to update command: upsert

Open sandipk22 opened this issue 8 years ago • 0 comments

Hi, Getting the error in client-act.rb file below is the debug for the same.

2017-10-24T07:16:02.356908+00:00 heroku[router]: at=info method=GET path="/websocket?clientname=twilioATtechilaservicesDOTcom" host=techilatwiml.herokuapp.com request_id=4657dd2d-ac4b-4b6a-a988-9b16fd6573d7 fwd="123.252.249.18" dyno=web.1 connect=1ms service=7ms status=500 bytes=165 protocol=https 2017-10-24T07:16:02.355031+00:00 app[web.1]: 2017-10-24 07:16:02 - Mongo::OperationFailure - Database command 'update' failed: Unknown option to update command: upsert: 2017-10-24T07:16:02.355045+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/mongo-1.12.5/lib/mongo/db.rb:610:in rescue in command' 2017-10-24T07:16:02.355046+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/mongo-1.12.5/lib/mongo/db.rb:606:in command' 2017-10-24T07:16:02.355047+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/mongo-1.12.5/lib/mongo/collection_writer.rb:314:in block in send_write_command' 2017-10-24T07:16:02.355048+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/mongo-1.12.5/lib/mongo/functional/logging.rb:55:in block in instrument' 2017-10-24T07:16:02.355048+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/mongo-1.12.5/lib/mongo/functional/logging.rb:20:in instrument' 2017-10-24T07:16:02.355049+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/mongo-1.12.5/lib/mongo/functional/logging.rb:54:in instrument' 2017-10-24T07:16:02.355050+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/mongo-1.12.5/lib/mongo/collection_writer.rb:313:in send_write_command' 2017-10-24T07:16:02.355050+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/mongo-1.12.5/lib/mongo/collection.rb:1104:in send_write' 2017-10-24T07:16:02.355051+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/mongo-1.12.5/lib/mongo/collection.rb:497:in update' 2017-10-24T07:16:02.355052+00:00 app[web.1]: /app/client-acd.rb:131:in block (3 levels) in <top (required)>' 2017-10-24T07:16:02.355053+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/em-websocket-0.3.8/lib/em-websocket/connection.rb:22:in trigger_on_open' 2017-10-24T07:16:02.355053+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/em-websocket-0.3.8/lib/em-websocket/handler.rb:18:in run' 2017-10-24T07:16:02.355054+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/sinatra-websocket-0.3.1/lib/sinatra-websocket.rb:123:in dispatch' 2017-10-24T07:16:02.355054+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/sinatra-websocket-0.3.1/lib/sinatra-websocket.rb:22:in from_env' 2017-10-24T07:16:02.355055+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/sinatra-websocket-0.3.1/lib/sinatra-websocket/ext/sinatra/request.rb:17:in websocket' 2017-10-24T07:16:02.355057+00:00 app[web.1]: /app/client-acd.rb:121:in block in <top (required)>'

sandipk22 avatar Oct 24 '17 07:10 sandipk22