Traceback (most recent call last):


 "/usr/local/lib/python2.7/site-packages/celery/worker/worker.py", line 203, in start

self.blueprint.start(self)


 "/usr/local/lib/python2.7/site-packages/celery/bootsteps.py", line 119, in start

step.start(parent)


 "/usr/local/lib/python2.7/site-packages/celery/bootsteps.py", line 370, in start

return self.obj.start()


 "/usr/local/lib/python2.7/site-packages/celery/worker/consumer/consumer.py", line 318, in start

blueprint.start(self)


 "/usr/local/lib/python2.7/site-packages/celery/bootsteps.py", line 119, in start

step.start(parent)


 "/usr/local/lib/python2.7/site-packages/celery/worker/consumer/consumer.py", line 584, in start

c.loop(*c.loop_args())


 "/usr/local/lib/python2.7/site-packages/celery/worker/loops.py", line 88, in asynloop

next(loop)


 "/usr/local/lib/python2.7/site-packages/kombu/async/hub.py", line 345, in create_loop

cb(*cbargs)


 "/usr/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 1038, in on_readable

self.cycle.on_readable(fileno)


 "/usr/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 337, in on_readable

chan.handlers[type]()


 "/usr/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 670, in _receive

while c.connection.can_read(timeout=0):
TypeError: can_read() got an unexpected keyword argument 'timeout'

Traceback (most recent call last):


 "/project/venv/lib/python3.8/site-packages/flask_appbuilder/api/__init__.py", line 83, in wraps

return f(self, *args, **kwargs)


 "/project/venv/lib/python3.8/site-packages/flask_appbuilder/security/api.py", line 100, in login

resp[API_SECURITY_ACCESS_TOKEN_KEY] = create_access_token(


 "/project/venv/lib/python3.8/site-packages/flask_jwt_extended/utils.py", line 172, in create_access_token

return jwt_manager._create_access_token(identity, fresh, expires_delta, user_claims,


 "/project/venv/lib/python3.8/site-packages/flask_jwt_extended/jwt_manager.py", line 511, in _create_access_token

access_token = encode_access_token(


 "/project/venv/lib/python3.8/site-packages/flask_jwt_extended/tokens.py", line 76, in encode_access_token

return _encode_jwt(token_data, expires_delta, secret, algorithm,


 "/project/venv/lib/python3.8/site-packages/flask_jwt_extended/tokens.py", line 29, in _encode_jwt

encoded_token = jwt.encode(token_data, secret, algorithm,


 "/project/venv/lib/python3.8/site-packages/jwt/api_jwt.py", line 58, in encode

json_payload = json.dumps(


 "/usr/lib/python3.8/json/__init__.py", line 234, in dumps

return cls(


 "/usr/lib/python3.8/json/encoder.py", line 199, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "/project/venv/lib/python3.8/site-packages/flask_mongoengine/json.py", line 19, in default

return superclass.default(self, obj)


 "/project/venv/lib/python3.8/site-packages/flask/json/__init__.py", line 100, in default

return _json.JSONEncoder.default(self, o)


 "/usr/lib/python3.8/json/encoder.py", line 179, in default

raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type ObjectId is not JSON serializable
