Hi,
Phongap Couchbase-lite rest call GET /{db}/_changes?descending=true&feed=longpoll
getting 400 response status in IOS where it was working fine in Android.
Note: Am using very latest version from https://github.com/couchbaselabs/Couchbase-Lite-PhoneGap-Plugin.git.
Except _changes all other rest calls like queryview _all_docs working fine.
Please suggest.
It looks like the iOS REST API doesn’t support the descending
query parameter. Can you send the request without that parameter? I don’t really know what’s the use case for using a descending
query parameter on the changes feed. Changes are always returned by sequence number (most recent changes first).
James
@jamiltz yes you are right…But first time doing replicate firing change event with all documents so using decending.
Ok, looking into it a bit more, the descending
option works with feed=normal
only. For example:
http://localhost:59840/todo/_changes?feed=normal&descending=true&limit=1
Created a documentation ticket https://github.com/couchbaselabs/couchbase-mobile-portal/issues/674 to make that clearer in the docs.