I still can't make the filtered pull replication work - but everything seams to work with an HTTP client like Paw.
The response from CBLListener when running this code is: {"status":24576,"error":"server error"} followed by {"ok":true} (Monitored via Charles). But there is no response containing the changes feed. When i run the same request via Paw I get the correct answer form the CBLListener - {"results":[{"seq":371,"id":"-8K3Kn-aKp9amRCUIzijVB7","changes":[{"rev":"5-af054342256c93740dbd6e4f644cd6d5"}]}, ... Running my app without the filter works great. Either via HTTPS and pinned certs with or without authentication - all's fine. Turning on the filter kills everything. Any idea? Thanks, Sören I construct a simple filter database?.setFilterNamed("sharedByProject", as: { (revision, params) -> Bool in let isShared = revision["isShared"] as? Bool ?? false return isShared }) the kick off a CBLListener: listener = CBLListener(manager: manager, port: 55554) listener.readOnly = true listener.requiresAuth = false listener.setBonjourName(Host.current().localizedName, type: "_pull-sync._tcp.") listener.txtRecordDictionary = txtDictionary do { try listener.start() } catch { ... and after discovering another client in the network start a replication: ... let components = NSURLComponents() components.scheme = "http" components.host = host components.port = port components.path = "/pulldatabase" let pull = database!.createPullReplication(components.url!) pull.continuous = false pull.filter = "sharedByProject" pull.start() -- 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 mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/8ed12a04-3c49-4cbd-be93-8d397df780f3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.