Azure Cosmos mongo API and reactivemongo

49 views
Skip to first unread message

Scott Smith

unread,
Aug 10, 2017, 4:32:40 PM8/10/17
to ReactiveMongo - http://reactivemongo.org
Hi
Has anyone tried using reactivemongo with Microsoft Azure's Cosmo MongoDB API (https://docs.microsoft.com/en-gb/azure/cosmos-db/connect-mongodb-account)? I'm trying to get the library to connect but it throws errors like this:

2017-08-10 16:18:26.623 [reactivemongo-akka.actor.default-dispatcher-3] ERROR reactivemongo.core.actors.MongoDBSystem - [Supervisor-1/Connection-2] Authentication failure reactivemongo.core.commands.FailedAuthentication: BSONCommandError['error while processing getNonce response #1000']
at reactivemongo.core.actors.MongoScramSha1Authentication$$anonfun$2$$anonfun$applyOrElse$5$$anonfun$apply$10.apply(authentication.scala:104) ~[reactivemongo_2.11-0.12.5.jar:0.12.5]
at reactivemongo.core.actors.MongoScramSha1Authentication$$anonfun$2$$anonfun$applyOrElse$5$$anonfun$apply$10.apply(authentication.scala:104) ~[reactivemongo_2.11-0.12.5.jar:0.12.5]
at reactivemongo.core.actors.MongoDBSystem$$anonfun$authenticationResponse$1.apply(MongoDBSystem.scala:1006) [reactivemongo_2.11-0.12.5.jar:0.12.5]
at reactivemongo.core.actors.MongoDBSystem$$anonfun$authenticationResponse$1.apply(MongoDBSystem.scala:998) [reactivemongo_2.11-0.12.5.jar:0.12.5]
at reactivemongo.core.actors.MongoDBSystem$class.updateNodeSet(MongoDBSystem.scala:964) [reactivemongo_2.11-0.12.5.jar:0.12.5]
at reactivemongo.core.actors.StandardDBSystem.updateNodeSet(MongoDBSystem.scala:1318) [reactivemongo_2.11-0.12.5.jar:0.12.5]
at reactivemongo.core.actors.MongoDBSystem$class.authenticationResponse(MongoDBSystem.scala:998) [reactivemongo_2.11-0.12.5.jar:0.12.5]
at reactivemongo.core.actors.StandardDBSystem.authenticationResponse(MongoDBSystem.scala:1318) [reactivemongo_2.11-0.12.5.jar:0.12.5]
at reactivemongo.core.actors.MongoScramSha1Authentication$$anonfun$2$$anonfun$applyOrElse$5.apply(authentication.scala:104) [reactivemongo_2.11-0.12.5.jar:0.12.5]
at reactivemongo.core.actors.MongoScramSha1Authentication$$anonfun$2$$anonfun$applyOrElse$5.apply(authentication.scala:98) [reactivemongo_2.11-0.12.5.jar:0.12.5]
at scala.util.Either.fold(Either.scala:98) [scala-library-2.11.7.jar:na]
at reactivemongo.core.actors.MongoScramSha1Authentication$$anonfun$2.applyOrElse(authentication.scala:97) [reactivemongo_2.11-0.12.5.jar:0.12.5]
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170) [scala-library-2.11.7.jar:na]
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171) [scala-library-2.11.7.jar:na]
at akka.actor.Actor$class.aroundReceive(Actor.scala:467) [akka-actor_2.11-2.3.13.jar:na]
at reactivemongo.core.actors.StandardDBSystem.aroundReceive(MongoDBSystem.scala:1318) [reactivemongo_2.11-0.12.5.jar:0.12.5]
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) [akka-actor_2.11-2.3.13.jar:na]
at akka.actor.ActorCell.invoke(ActorCell.scala:487) [akka-actor_2.11-2.3.13.jar:na]
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) [akka-actor_2.11-2.3.13.jar:na]
at akka.dispatch.Mailbox.run(Mailbox.scala:220) [akka-actor_2.11-2.3.13.jar:na]

Anybody have any experience on using the API?
thanks

Cédric Chantepie

unread,
Aug 10, 2017, 5:59:56 PM8/10/17
to ReactiveMongo - http://reactivemongo.org
Ensure with auth is expected.

Ravichandra Tella

unread,
Feb 19, 2019, 1:47:15 PM2/19/19
to ReactiveMongo - http://reactivemongo.org
mongodb.uri = mongodb://acountname:passwd@host:port/DatabaseName?ssl=true will work

Cédric Chantepie

unread,
Feb 23, 2019, 6:34:02 AM2/23/19
to ReactiveMongo - http://reactivemongo.org
A contribution on http://github.com/reactivemongo/reactivemongo-site to explain with examples how to connect to Cosmos is welcome.
Reply all
Reply to author
Forward
0 new messages