On Thursday, January 8, 2015 3:58:46 PM UTC-3, Federico Hernandez wrote:
>
> On Wednesday, January 7, 2015 3:36:05 PM UTC-3, Dominique Legault wrote:
>>
>> Federico, in the changes REST API there is a since parameter to get
>> changes from a specific update sequence. when you get the db from the sync
>> gateway it returns the current update_seq document like so :
>>
>> [The following shows the changes retrieved from the my app]
>
> 15:18:52.892483 HTTP: #020: GET
> /adb/_changes?feed=longpoll&include_docs=true&conflicts=true&style=all_docs&since=1&limit=100
> 15:18:52.892575 HTTP: #020: --> 401 Login required (2.3 ms)
> 15:18:53.495125 HTTP: #021: GET
> /adb/_changes?feed=longpoll&include_docs=true&conflicts=true&style=all_docs&since=1&limit=100
>
> (as fede)
> 15:18:53.495422 WARNING: Changes feed: error getting doc "_user/fede": 400
> Invalid doc ID -- db.(*Database).addDocToChangeEntry() at changes.go:57
> 15:18:53.495822 HTTP+: #021: --> 200 OK (0.0 ms)
>
> {"results":[{"seq":4,"id":"_user/fede","changes":[]}],"last_seq":"4"}
>
>
> As you can see, the changes attribute is an empty array here. Could you
> tell me why is that and how could I get the same changes that I get through
> the admin interface?
>
>
Another question would be why are there two HTTP requests to get the
changes? In fact, the app makes only one request to get the changes. If you
see above, the first request fails with a 401 Login Required, but the
second one works fine. Can the first one be related to the pullRep ?
Thanks in advance,
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/5f0bb962-e58c-4259-bf6f-50625f27819a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.