-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I don't see a stated couchdb version supported for this library so I'm not sure if I'm simply using a version for which this library wasn't designed, but I just tried playing with it for the first time and got this exception:
upickle.Invalid$Data: Key Missing: uuid (data: Obj(ArrayBuffer((couchdb,Str(Welcome)), (version,Str(2.0.0)), (vendor,Obj(ArrayBuffer((name,Str(The Apache Software Foundation))))))))
at upickle.GeneratedUtil$class.mapToArray(GeneratedUtil.scala:45)
at upickle.default$.mapToArray(Api.scala:25)
at upickle.Implicits$$anonfun$CaseR$1.applyOrElse(Implicits.scala:83)
at upickle.Implicits$$anonfun$CaseR$1.applyOrElse(Implicits.scala:82)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
at upickle.Implicits$Internal$$anon$1.apply(Implicits.scala:53)
at upickle.Implicits$Internal$$anon$1.apply(Implicits.scala:50)
at upickle.Types$Reader$$anonfun$read$1.applyOrElse(Types.scala:93)
...
It's expecting a uuid
field in the couchdb response, but the /
endpoint on this version of couchdb isn't providing one. You can see the full details of the couchdb version in the stack trace there, but for easier reading:
$ curl -s localhost:5984 | python -mjson.tool
{
"couchdb": "Welcome",
"vendor": {
"name": "The Apache Software Foundation"
},
"version": "2.0.0"
}
Metadata
Metadata
Assignees
Labels
No labels