{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1458","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1458/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1458/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1458/events","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/1458","id":178990871,"number":1458,"title":"1.3.1 (Commit 7ec0ec2) does not sync with Server (4.1.0)","user":{"login":"jscubida","id":1505319,"avatar_url":"https://avatars.githubusercontent.com/u/1505319?v=3","gravatar_id":"","url":"https://api.github.com/users/jscubida","html_url":"https://github.com/jscubida","followers_url":"https://api.github.com/users/jscubida/followers","following_url":"https://api.github.com/users/jscubida/following{/other_user}","gists_url":"https://api.github.com/users/jscubida/gists{/gist_id}","starred_url":"https://api.github.com/users/jscubida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscubida/subscriptions","organizations_url":"https://api.github.com/users/jscubida/orgs","repos_url":"https://api.github.com/users/jscubida/repos","events_url":"https://api.github.com/users/jscubida/events{/privacy}","received_events_url":"https://api.github.com/users/jscubida/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-23T23:01:49Z","updated_at":"2016-09-26T16:46:08Z","closed_at":"2016-09-26T15:13:33Z","body":"We're currently using the framework generated from commit 7ec0ec2 due to compilation issues with 1.3.1. Android counterpart syncs with the server just fine. Downgrading to 1.2 enables syncing for iOS 9 but breaks syncing for iOS 10. \r\n\r\n--------\r\n* Version:    7ec0ec2 (1.3.1)\r\n* Client OS: iOS 9, iOS 10\r\n* Server:      4.1.0-5005, SG: 1.3\r\n"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments/249626623","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/1458#issuecomment-249626623","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1458","id":249626623,"user":{"login":"jscubida","id":1505319,"avatar_url":"https://avatars.githubusercontent.com/u/1505319?v=3","gravatar_id":"","url":"https://api.github.com/users/jscubida","html_url":"https://github.com/jscubida","followers_url":"https://api.github.com/users/jscubida/followers","following_url":"https://api.github.com/users/jscubida/following{/other_user}","gists_url":"https://api.github.com/users/jscubida/gists{/gist_id}","starred_url":"https://api.github.com/users/jscubida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscubida/subscriptions","organizations_url":"https://api.github.com/users/jscubida/orgs","repos_url":"https://api.github.com/users/jscubida/repos","events_url":"https://api.github.com/users/jscubida/events{/privacy}","received_events_url":"https://api.github.com/users/jscubida/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T16:46:08Z","updated_at":"2016-09-26T16:46:08Z","body":"I'm kicking myself. The issue was with App Transport Security Settings. With Couchbase Lite 1.2, the value of NSExceptionMinimumTLSVersion was TLSv1.2. After upgrading to Couchbase Lite 1.3.1 syncing just stopped working. Changing the value of NSExceptionMinimumTLSVersion to TLSv1.0 fixed everything.\r\n\r\nI stumbled upon this [SO Post](http://stackoverflow.com/a/32046052/123890), which suggested the use of \r\n\r\n`nscurl --ats-diagnostics https://example.com`\r\n\r\nThe output basically clued me into the TLS minimum version:\r\n\r\n````\r\nConfiguring TLS exceptions with PFS disabled and insecure HTTP allowed for vtfsmpmcouch01.fsm.northwestern.edu\r\n\r\n---\r\nTLSv1.2 with PFS disabled and insecure HTTP allowed\r\n2016-09-26 11:36:05.769 nscurl[72079:4238506] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)\r\nResult : FAIL\r\n---\r\n\r\n---\r\nTLSv1.1 with PFS disabled and insecure HTTP allowed\r\n2016-09-26 11:36:05.828 nscurl[72079:4238506] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)\r\nResult : FAIL\r\n---\r\n\r\n---\r\nTLSv1.0 with PFS disabled and insecure HTTP allowed\r\nResult : PASS\r\n---\r\n````"}}
{"actor":{"display_login":"jscubida"}}