Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing uuid key on status endpoint (unsupported couchdb version?) #76

@giftig

Description

@giftig

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions