{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/431","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/431/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/431/events","html_url":"https://github.com/couchbase/couchbase-lite-net/issues/431","id":89416308,"number":431,"title":"[Listener] Internal server error when doing a GET with attachments","user":{"login":"sethrosetter","id":1365736,"avatar_url":"https://avatars.githubusercontent.com/u/1365736?v=3","gravatar_id":"","url":"https://api.github.com/users/sethrosetter","html_url":"https://github.com/sethrosetter","followers_url":"https://api.github.com/users/sethrosetter/followers","following_url":"https://api.github.com/users/sethrosetter/following{/other_user}","gists_url":"https://api.github.com/users/sethrosetter/gists{/gist_id}","starred_url":"https://api.github.com/users/sethrosetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethrosetter/subscriptions","organizations_url":"https://api.github.com/users/sethrosetter/orgs","repos_url":"https://api.github.com/users/sethrosetter/repos","events_url":"https://api.github.com/users/sethrosetter/events{/privacy}","received_events_url":"https://api.github.com/users/sethrosetter/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/P2:%20critical","name":"P2: critical","color":"eb6420"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/labels/priority-medium","name":"priority-medium","color":"fbca04"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/labels/ready","name":"ready","color":"ededed"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/labels/size-medium","name":"size-medium","color":"fad8c7"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/labels/testneeded","name":"testneeded","color":"0052cc"}],"state":"open","locked":false,"assignee":{"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},"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":9,"closed_issues":4,"state":"open","created_at":"2015-04-24T22:11:46Z","updated_at":"2015-06-19T21:27:55Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-18T22:51:57Z","updated_at":"2015-06-19T23:14:38Z","closed_at":null,"body":"I have a database on one device (A) that I am setting as a replication endpoint\r\n\r\n```\r\nvar listener = new CouchbaseLiteTcpListener(MainActivity.DBManager, m_connectionInfo.Port) { ReadOnly = false };\r\nlistener.Start();\r\n```\r\n\r\nI am able to issue GET requests to this database via the endpoint and am able to see the various saved documents on A. However when I try to issue a pull replication from another device (B) to this endpoint, I get the below error.\r\n\r\n```\r\n06-18 14:35:00.178 I/mono-stdout(23043):     Got error InternalServerError\r\nReplication\r\n06-18 14:35:00.178 I/mono-stdout(23043): Replication\r\n06-18 14:35:00.188 I/mono-stdout(23043):     Request was for: Method: GET, RequestUri: 'http://192.168.0.19:7938/syncpoint/8e447079-20be-4f60-b0da-02b0c2ea4dee?rev=1-125206c5f037bb7241d0193159f3d95c&revs=true&attachments=true', Version: 1.1, Content: <null>, Headers:\r\n    Request was for: Method: GET, RequestUri: 'http://192.168.0.19:7938/syncpoint/8e447079-20be-4f60-b0da-02b0c2ea4dee?rev=1-125206c5f037bb7241d0193159f3d95c&revs=true&attachments=true', Version: 1.1, Content: <null>, Headers:\r\n    {\r\n    Accept: */*\r\n    }\r\n06-18 14:35:00.188 I/mono-stdout(23043):     {\r\n06-18 14:35:00.188 I/mono-stdout(23043):     Accept: */*\r\n06-18 14:35:00.188 I/mono-stdout(23043):     }\r\n```\r\n\r\nManually issuing the request fails, however, if you change ...&attachments=false, it succeeds.\r\n\r\nI am very new Couchbase to this so this may entirely be user error but decided to pass on the information.\r\n\r\nMy database only has one document with a couple of properties.\r\nRequests and result:\r\n```\r\nhttp://192.168.0.19:7938/syncpoint\r\n{\"db_name\":\"syncpoint\",\"doc_count\":1,\"update_seq\":1,\"committed_update_seq\":1,\"purge_seq\":0,\"disk_size\":72600,\"start_time\":1434667480346000}\r\n```\r\n```\r\nhttp://192.168.0.19:7938/syncpoint/_all_docs\r\n{\"rows\":[{\"key\":\"6c7a94e8-0672-4c6c-ad37-94f263668e57\",\"value\":{\"rev\":\"1-955cb4fe6a50f92dbcc31168877903e0\"},\"id\":\"6c7a94e8-0672-4c6c-ad37-94f263668e57\"}],\"total_rows\":1,\"offset\":0}\r\n```\r\n```\r\nhttp://192.168.0.19:7938/syncpoint/6c7a94e8-0672-4c6c-ad37-94f263668e57\r\n{\"message\":\"Hello Couchbase Lite\",\"created_at\":\"2015-06-18T22:44:44.1702090Z\",\"_id\":\"6c7a94e8-0672-4c6c-ad37-94f263668e57\",\"_rev\":\"1-955cb4fe6a50f92dbcc31168877903e0\"}\r\n```\r\n\r\nLet me know if you need anymore information.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/comments/113669469","html_url":"https://github.com/couchbase/couchbase-lite-net/issues/431#issuecomment-113669469","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/431","id":113669469,"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-06-19T23:14:38Z","updated_at":"2015-06-19T23:14:38Z","body":"Hey @sethrosetter thanks for the detailed report.  Are those logs and that error from the same session, because the ID doesn't match up between the two (the former is 8e447079-20be-4f60-b0da-02b0c2ea4dee and the latter is 6c7a94e8-0672-4c6c-ad37-94f263668e57)\n\nI assume you just copied and pasted from two different runs since the first one crashed.  I've made some fixes and committed them.  I can see that the replicator will hit the URL you describe with no problem.  Could you try it out again with the latest commit to master?  Also if it happens again could you grab the log output from the listener as well as the client?  Thanks."}}