couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Landeiro <lande...@gmail.com>
Subject Re: Problems getting local doc by revision
Date Sun, 24 Apr 2011 18:39:57 GMT
Already tried that but the rev argument does not accept ("),  returns
instead:

{"error":"unknown_error","reason":"badarg"}



On Sun, Apr 24, 2011 at 11:16 AM, Robert Newson <robert.newson@gmail.com>wrote:

> try ?rev="0-1"
>
> B.
>
> On 23 April 2011 22:41, Pedro Landeiro <landeiro@gmail.com> wrote:
> > Hi,
> >
> > I cannot retrieve a local doc by revision.
> >
> > I can get the doc like this:
> > http://127.0.0.1:5984/thisisatempdb/_local/mylocaldoc
> >
> >
> >
> {"_id":"_local/mylocaldoc","_rev":"0-1","name":"pedro","surname":"landeiro","islocal":"oh
> > yeah"}
> >
> >
> > but if I request the some doc with the revision:
> > http://127.0.0.1:5984/thisisatempdb/_local/mylocaldoc?rev=0-1
> >
> > {"error":"not_found","reason":"missing"}
> >
> >
> > Am i doing some wrong?
> >
> > Thanks.
> >
> > --
> > Pedro Landeiro
> > http://www.linkedin.com/in/pedrolandeiro
> >
>



-- 
Pedro Landeiro
http://www.linkedin.com/in/pedrolandeiro

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message