<RC=0x16[Data received on socket was not in the expected format], HTTP Request failed. Examine 'objextra' for full result, Results=1, C Source=(src/http.c,140), OBJ=ViewResult<RC=0x16[Data received on socket was not in the expected format], Value='},\n\n ],\n "status": "timeout",\n "metrics": {\n "elapsedTime": "1m15.289138508s",\n "executionTime": "1m15.28911565s",\n "resultCount": 59777,\n "resultSize": 78879564\n }\n}\n', HTTP=200>>
Could someone point me towards how to fix this?
The error gets throw while iterating across the results of a N1QL query using the python SDK. Offending line:
for row in cb.n1ql_query(query):
Here’s the traceback:
Traceback (most recent call last):
File "couchbaseDataExportES.py", line 95, in <module>
writeToES(q)
File "couchbaseDataExportES.py", line 29, in writeToES
for row in cb.n1ql_query(query):
File "/usr/local/lib/python2.7/dist-packages/couchbase/n1ql.py", line 343, in __iter__
raw_rows = self.raw.fetch(self._mres)
_ProtocolError_0x16 (generated, catch ProtocolError): <RC=0x16[Data received on socket was not in the expected format], HTTP Request failed. Examine "objextra" for full result, Results=1, C Source=(src/http.c,140), OBJ=ViewResult<RC=0x16[Data received on socket was not in the expected format], Value="},\n\n ],\n "status": "timeout",\n "metrics": {\n "elapsedTime": "1m15.540084496s",\n "executionTime": "1m15.540053887s",\n "resultCount": 60085,\n "resultSize": 79286006\n }\n}\n", HTTP=200>>
The error seems to occur randomly.