You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The connector inserts one document then barfs. I tried pyelasticsearch to manually populate and received the same error until I cast the ObjectId into a string.
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/mongo-connector/oplog_manager.py", line 101, in run
cursor = self.init_cursor()
File "/usr/local/lib/python2.7/dist-packages/mongo-connector/oplog_manager.py", line 298, in init_cursor
timestamp = self.dump_collection()
File "/usr/local/lib/python2.7/dist-packages/mongo-connector/oplog_manager.py", line 268, in dump_collection
self.doc_manager.upsert(doc)
File "./doc_managers/elastic_doc_manager.py", line 77, in upsert
self.elastic.index(doc, index, doc_type, doc_id)
File "/usr/local/lib/python2.7/dist-packages/pyes/es.py", line 1142, in index
return self._send_request(request_method, path, doc, querystring_args)
File "/usr/local/lib/python2.7/dist-packages/pyes/es.py", line 574, in _send_request
body = json.dumps(body, cls=self.encoder)
File "/usr/lib/python2.7/json/__init.py", line 240, in dumps
**kw).encode(obj)
File "/usr/lib/python2.7/json/encoder.py", line 203, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python2.7/json/encoder.py", line 266, in iterencode
return _iterencode(o, 0)
ValueError: Circular reference detected
The text was updated successfully, but these errors were encountered:
I'm going to close this issue- I could not reproduce it. I think this was caused by a bug in the way that ObjectIDs, DBRefs, etc were being encoded that was just fixed in the latest commit. If this is still an issue, please reopen the issue.
The connector inserts one document then barfs. I tried pyelasticsearch to manually populate and received the same error until I cast the ObjectId into a string.
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/mongo-connector/oplog_manager.py", line 101, in run
cursor = self.init_cursor()
File "/usr/local/lib/python2.7/dist-packages/mongo-connector/oplog_manager.py", line 298, in init_cursor
timestamp = self.dump_collection()
File "/usr/local/lib/python2.7/dist-packages/mongo-connector/oplog_manager.py", line 268, in dump_collection
self.doc_manager.upsert(doc)
File "./doc_managers/elastic_doc_manager.py", line 77, in upsert
self.elastic.index(doc, index, doc_type, doc_id)
File "/usr/local/lib/python2.7/dist-packages/pyes/es.py", line 1142, in index
return self._send_request(request_method, path, doc, querystring_args)
File "/usr/local/lib/python2.7/dist-packages/pyes/es.py", line 574, in _send_request
body = json.dumps(body, cls=self.encoder)
File "/usr/lib/python2.7/json/__init.py", line 240, in dumps
**kw).encode(obj)
File "/usr/lib/python2.7/json/encoder.py", line 203, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python2.7/json/encoder.py", line 266, in iterencode
return _iterencode(o, 0)
ValueError: Circular reference detected
The text was updated successfully, but these errors were encountered: