scala-etcd
scala-etcd copied to clipboard
etcdClient.listDir("/") throws exception
Calling the listDir method of EtcdClient throws an exception (in the future):
etcd Version: 2.1.2 Git SHA: ff8d1ec Go Version: go1.4.2 Go OS/Arch: darwin/amd64
java8, scala-2.11.7
Object is missing required member 'key' spray.httpx.PipelineException: Object is missing required member 'key' at spray.httpx.ResponseTransformation$$anonfun$unmarshal$1.apply(ResponseTransformation.scala:36) at spray.httpx.ResponseTransformation$$anonfun$unmarshal$1.apply(ResponseTransformation.scala:31) at scala.util.Success$$anonfun$map$1.apply(Try.scala:237) at scala.util.Try$.apply(Try.scala:192) at scala.util.Success.map(Try.scala:237) at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235) at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55) at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:91) at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91) at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91) at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72) at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:90) at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) Caused by: spray.json.DeserializationException: Object is missing required member 'key' at spray.json.package$.deserializationError(package.scala:23) at spray.json.ProductFormats$class.fromField(ProductFormats.scala:61) at net.nikore.etcd.EtcdJsonProtocol$.fromField(EtcdJsonProtocol.scala:5) at spray.json.ProductFormatsInstances$$anon$4.read(ProductFormatsInstances.scala:103) at spray.json.ProductFormatsInstances$$anon$4.read(ProductFormatsInstances.scala:92) at spray.json.AdditionalFormats$$anon$5.read(AdditionalFormats.scala:93) at spray.json.ProductFormats$class.fromField(ProductFormats.scala:56) at net.nikore.etcd.EtcdJsonProtocol$.fromField(EtcdJsonProtocol.scala:5) at spray.json.ProductFormatsInstances$$anon$2.read(ProductFormatsInstances.scala:56) at spray.json.ProductFormatsInstances$$anon$2.read(ProductFormatsInstances.scala:46) at spray.httpx.SprayJsonSupport$$anonfun$sprayJsonUnmarshaller$1.applyOrElse(SprayJsonSupport.scala:37) at spray.httpx.SprayJsonSupport$$anonfun$sprayJsonUnmarshaller$1.applyOrElse(SprayJsonSupport.scala:34) at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) at spray.httpx.unmarshalling.Unmarshaller$$anon$1$$anonfun$unmarshal$1.apply(Unmarshaller.scala:29) at spray.httpx.unmarshalling.SimpleUnmarshaller.protect(SimpleUnmarshaller.scala:40) at spray.httpx.unmarshalling.Unmarshaller$$anon$1.unmarshal(Unmarshaller.scala:29) at spray.httpx.unmarshalling.SimpleUnmarshaller.apply(SimpleUnmarshaller.scala:29) at spray.httpx.unmarshalling.SimpleUnmarshaller.apply(SimpleUnmarshaller.scala:23) at spray.httpx.unmarshalling.UnmarshallerLifting$$anon$3.apply(UnmarshallerLifting.scala:35) at spray.httpx.unmarshalling.UnmarshallerLifting$$anon$3.apply(UnmarshallerLifting.scala:34) at spray.httpx.unmarshalling.UnmarshallerLifting$$anon$2.apply(UnmarshallerLifting.scala:30) at spray.httpx.unmarshalling.UnmarshallerLifting$$anon$2.apply(UnmarshallerLifting.scala:29) at spray.httpx.unmarshalling.package$PimpedHttpResponse.as(package.scala:51) at spray.httpx.ResponseTransformation$$anonfun$unmarshal$1.apply(ResponseTransformation.scala:33) ... 19 more Caused by: java.util.NoSuchElementException: key not found: key at scala.collection.MapLike$class.default(MapLike.scala:228) at scala.collection.AbstractMap.default(Map.scala:59) at scala.collection.MapLike$class.apply(MapLike.scala:141) at scala.collection.AbstractMap.apply(Map.scala:59) at spray.json.ProductFormats$class.fromField(ProductFormats.scala:54) ... 41 more