{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/438","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/438/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/438/events","html_url":"https://github.com/couchbase/couchbase-lite-net/issues/438","id":90490388,"number":438,"title":"Replication.CompletedChangesCount is always 0","user":{"login":"ryanthompson0123","id":3884891,"avatar_url":"https://avatars.githubusercontent.com/u/3884891?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanthompson0123","html_url":"https://github.com/ryanthompson0123","followers_url":"https://api.github.com/users/ryanthompson0123/followers","following_url":"https://api.github.com/users/ryanthompson0123/following{/other_user}","gists_url":"https://api.github.com/users/ryanthompson0123/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanthompson0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanthompson0123/subscriptions","organizations_url":"https://api.github.com/users/ryanthompson0123/orgs","repos_url":"https://api.github.com/users/ryanthompson0123/repos","events_url":"https://api.github.com/users/ryanthompson0123/events{/privacy}","received_events_url":"https://api.github.com/users/ryanthompson0123/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/milestones/11","html_url":"https://github.com/couchbase/couchbase-lite-net/milestones/1.1.1","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/milestones/11/labels","id":1082958,"number":11,"title":"1.1.1","description":"","creator":{"login":"zgramana","id":759830,"avatar_url":"https://avatars.githubusercontent.com/u/759830?v=3","gravatar_id":"","url":"https://api.github.com/users/zgramana","html_url":"https://github.com/zgramana","followers_url":"https://api.github.com/users/zgramana/followers","following_url":"https://api.github.com/users/zgramana/following{/other_user}","gists_url":"https://api.github.com/users/zgramana/gists{/gist_id}","starred_url":"https://api.github.com/users/zgramana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgramana/subscriptions","organizations_url":"https://api.github.com/users/zgramana/orgs","repos_url":"https://api.github.com/users/zgramana/repos","events_url":"https://api.github.com/users/zgramana/events{/privacy}","received_events_url":"https://api.github.com/users/zgramana/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":11,"state":"open","created_at":"2015-04-24T22:11:46Z","updated_at":"2015-07-07T21:27:43Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-06-23T21:06:15Z","updated_at":"2015-07-09T22:41:04Z","closed_at":null,"body":"Using version 1.1.0.1 in my Xamarin apps, the completed changes count always shows 0 during replication. The following error is printed to the console lots of times during replication and I think it's related:\r\n\r\n\r\n```\r\n2015-06-23 15:01:24.422 MyApp[28579:2437672] Database: Exception getting status from System.Collections.Generic.Dictionary`2[System.String,System.Object]\r\n2015-06-23 15:01:24.422 MyApp[28579:2437672]     \r\n2015-06-23 15:01:24.422 MyApp[28579:2437672] System.InvalidCastException: Unable to cast object of type 'System.Int64' to type 'System.String'.\r\n2015-06-23 15:01:24.422 MyApp[28579:2437672] \r\n2015-06-23 15:01:24.422 MyApp[28579:2437672]     \r\n2015-06-23 15:01:24.422 MyApp[28579:2437672]   at Couchbase.Lite.Replicator.Puller.StatusFromBulkDocsResponseItem (IDictionary`2 item) [0x0004c] in /Users/zgramana/Source/couchbase-lite-net/src/Couchbase.Lite.Shared/Replication/Puller.cs:701 \r\n2015-06-23 15:01:24.422 MyApp[28579:2437672] \r\n2015-06-23 15:01:24.423 MyApp[28579:2437672] Replication:  Progress: set error = \r\n2015-06-23 15:01:24.423 MyApp[28579:2437672]     \r\n2015-06-23 15:01:24.423 MyApp[28579:2437672] Couchbase.Lite.CouchbaseLiteException: Coucbase Lite error: Ok\r\n2015-06-23 15:01:24.423 MyApp[28579:2437672] \r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/comments/120167113","html_url":"https://github.com/couchbase/couchbase-lite-net/issues/438#issuecomment-120167113","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/438","id":120167113,"user":{"login":"borrrden","id":2470288,"avatar_url":"https://avatars.githubusercontent.com/u/2470288?v=3","gravatar_id":"","url":"https://api.github.com/users/borrrden","html_url":"https://github.com/borrrden","followers_url":"https://api.github.com/users/borrrden/followers","following_url":"https://api.github.com/users/borrrden/following{/other_user}","gists_url":"https://api.github.com/users/borrrden/gists{/gist_id}","starred_url":"https://api.github.com/users/borrrden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borrrden/subscriptions","organizations_url":"https://api.github.com/users/borrrden/orgs","repos_url":"https://api.github.com/users/borrrden/repos","events_url":"https://api.github.com/users/borrrden/events{/privacy}","received_events_url":"https://api.github.com/users/borrrden/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T22:41:04Z","updated_at":"2015-07-09T22:41:04Z","body":"@ryanthompson0123 I've made a substantial refactor to the replication code base, and pushed it to a branch called `issue/438`.  Could you take a look at it and see if it fixes your problem?"}}