Can't sync PouchDB to Couchbase through Sync Gateway by channel

I am trying to sync pouchDB with CouchBase through Sync Gateway by channel. In pouch I have :

var da = new PouchDB(‘example_DE’);
da.sync(remoteDB, {
create_target: true,
live: true,
retry: true,
filter: “sync_gateway/bychannel”,
query_params: {
channels: [“DE”]
}
})

In Sync config file:

{…
“databases”: {
“db”: {
“bucket”:“db”,
“username”: “Administrator”,
“password”: “123456”,
“server”: “http://localhost:8091”,
“sync”:
function (doc) { channel(doc.channels); },
“users”: {
“GUEST”: {“disabled”: false, “admin_channels”: ["*"] }
}
}
}

If I sync without
filter: “sync_gateway/bychannel”,
query_params: {
channels: [“DE”]
}
I don’t have any problem, if I try to sync by channel I get an error.
I can find in browser in IndexedDB my documents but in console I get this error: GET http://localhost:4984/db/_local/nKlC5IrimnHOiQZcwE_LYA%3D%3D? 404 (Not Found)

We got same issue.
Anybody have ideas?

Check out this setup guide - it shows an easy recipe to get this working.

@Andrey I’m experiencing the same problem, did you find any solution for it?