-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
test_fetch_next_exception is failing with PyMongo 3.12:
ERROR [0.023s]: test_fetch_next_exception (test.asyncio_tests.test_asyncio_cursor.TestAsyncIOCursor) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/cursor.py", line 1044, in __send_message response = client._run_operation( File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1424, in _run_operation return self._retryable_read( File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1525, in _retryable_read return func(session, server, sock_info, secondary_ok) File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1420, in _cmd return server.run_operation( File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/server.py", line 130, in run_operation _check_command_response(first, sock_info.max_wire_version) File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/helpers.py", line 167, in _check_command_response raise OperationFailure(errmsg, code, response, max_wire_version) pymongo.errors.OperationFailure: Field 'getMore' must be of type long in: { getMore: 1234, collection: "test_collection", lsid: { id: UUID("ef8a4297-a84d-46d0-8f2f-1d7e209eacef") }, $db: "motor_test" }, full error: {'ok': 0.0, 'errmsg': 'Field \'getMore\' must be of type long in: { getMore: 1234, collection: "test_collection", lsid: { id: UUID("ef8a4297-a84d-46d0-8f2f-1d7e209eacef") }, $db: "motor_test" }', 'code': 14, 'codeName': 'TypeMismatch'} During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/shane/git/motor/test/asyncio_tests/__init__.py", line 48, in __call__ result = self.orig_method() File "/Users/shane/git/motor/test/asyncio_tests/__init__.py", line 213, in wrapped self.loop.run_until_complete(task) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py", line 476, in wait_for return fut.result() File "/Users/shane/git/motor/test/asyncio_tests/test_asyncio_cursor.py", line 135, in test_fetch_next_exception await cursor.fetch_next File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/cursor.py", line 1175, in _refresh self.__send_message(g) File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/cursor.py", line 1050, in __send_message self.close() File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/cursor.py", line 372, in close self.__die(True) File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/cursor.py", line 352, in __die address = _CursorAddress( File "/Users/shane/git/motor/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/message.py", line 491, in __new__ self = tuple.__new__(cls, address) TypeError: 'NoneType' object is not iterable
This was passing with PyMongo 3.11 so something in pymongo must have changed. It could be related to PYTHON-2745.
- is caused by
-
PYTHON-2673 Connection pinning behavior for load balanced clusters
- Closed
- is related to
-
MOTOR-770 Test failure - test_exhaust
- Closed
-
MOTOR-782 Test Failure - test_fetch_next_exception on MongoDB 3.0
- Closed
- related to
-
PYTHON-2745 Field 'cursors' contains an element that is not of type long: 0: 12345
- Closed