I got this in sync gateway:
2017-04-20T15:55:59.895+07:00 WARNING: changeCache: Error unmarshaling doc “todo.Sparrow”: – db.(*changeCache).DocChanged.func1() at change_cache.go:327
when create document in Couchbase Server.
I want to sync(Pull) document from Couchbase Server to Couchbase Lite(Mobile)
Yeah that’s correct. The only way to use the Couchbase SDK in conjunction with Sync Gateway is to setup Bucket Shadowing, which is planned to be deprecated one day. As atom_yang mentioned, try using the Sync Gateway REST API.