[2024-01-23 14:14:15,638] ERROR in app: Exception on /users [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/local/lib/python3.10/site-packages/flask_restful/__init__.py", line 467, in wrapper
resp = resource(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/flask/views.py", line 84, in view
return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/flask_restful/__init__.py", line 582, in dispatch_request
resp = meth(*args, **kwargs)
File "/usr/src/app/API/users.py", line 70, in get
return jsonify(self.formatUsersResult(list(datas)))
File "/usr/local/lib/python3.10/site-packages/pymongo/cursor.py", line 1159, in next
if len(self.__data) or self._refresh():
File "/usr/local/lib/python3.10/site-packages/pymongo/cursor.py", line 1080, in _refresh
self.__send_message(q)
File "/usr/local/lib/python3.10/site-packages/pymongo/cursor.py", line 971, in __send_message
response = client._run_operation(
File "/usr/local/lib/python3.10/site-packages/pymongo/mongo_client.py", line 1215, in _run_operation
return self._retryable_read(
File "/usr/local/lib/python3.10/site-packages/pymongo/mongo_client.py", line 1313, in _retryable_read
return func(session, server, sock_info, secondary_ok)
File "/usr/local/lib/python3.10/site-packages/pymongo/mongo_client.py", line 1211, in _cmd
return server.run_operation(
File "/usr/local/lib/python3.10/site-packages/pymongo/server.py", line 129, in run_operation
_check_command_response(first, sock_info.max_wire_version)
File "/usr/local/lib/python3.10/site-packages/pymongo/helpers.py", line 170, in _check_command_response
raise OperationFailure(errmsg, code, response, max_wire_version)
pymongo.errors.OperationFailure: Regular expression is invalid: unmatched parentheses, full error: {'ok': 0.0, 'errmsg': 'Regular expression is invalid: unmatched parentheses', 'code': 51091, 'codeName': 'Location51091', '$clusterTime': {'clusterTime': Timestamp(1706019255, 2), 'signature': {'hash': b'\xb4\x1a\x07\xe5\x0e\x055t\r\xab\xa4\xc9\x13\xc8d\x7fG\xdfl\x0e', 'keyId': 7282379679028215812}}, 'operationTime': Timestamp(1706019255, 2)}