Error: parseLoop closing socket due to error: unexpected EOF


I’m having this message being logged on sync-gateway and I don’t understand why it happens.

I’m having a problem that I can’t explain. I’m tinkering with attachments from couchbase-lite-core and when I add a second attachment to a document, replicator fails and never recovers. The only solution I have found for now is to delete the binary document via couchbase server user interface.

I’m a bit lost now…

Any ideas?

Thanks in advance!



Are you using Lite-Core directly or using one of the CBL platforms (iOS, Android, .NET)?

Could you provide code snippet that you use to add attachments, client log, and SG log?


Thanks for your reply. Curiously, the issue I was having, I can’t replicate it anymore. I have tried many things and then stopped looking for an answer for a couple of weeks. When I tried to replicate the issue again, I couldn’t anymore.

I will get back here if stumble on it again!


Best regards,


1 Like