本帖最后由 宝塔用_9b84 于 2023-4-5 13:34 编辑
操作系统:debian11
操作:开启replication
- #operationProfiling:
- replication:
- replSetName: bt_main
复制代码
错误:
- Traceback (most recent call last):
- File "class/public.py", line 277, in dumps
- return json.dumps(data)
- File "/www/server/panel/pyenv/lib/python3.7/json/__init__.py", line 231, in dumps
- return _default_encoder.encode(obj)
- File "/www/server/panel/pyenv/lib/python3.7/json/encoder.py", line 199, in encode
- chunks = self.iterencode(o, _one_shot=True)
- File "/www/server/panel/pyenv/lib/python3.7/json/encoder.py", line 257, in iterencode
- return _iterencode(o, 0)
- File "/www/server/panel/pyenv/lib/python3.7/json/encoder.py", line 179, in default
- raise TypeError(f'Object of type {o.__class__.__name__} '
- TypeError: Object of type Timestamp is not JSON serializable
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "class/public.py", line 279, in dumps
- return json.dumps(data, ensure_ascii=False)
- File "/www/server/panel/pyenv/lib/python3.7/json/__init__.py", line 238, in dumps
- **kw).encode(obj)
- File "/www/server/panel/pyenv/lib/python3.7/json/encoder.py", line 199, in encode
- chunks = self.iterencode(o, _one_shot=True)
- File "/www/server/panel/pyenv/lib/python3.7/json/encoder.py", line 257, in iterencode
- return _iterencode(o, 0)
- File "/www/server/panel/pyenv/lib/python3.7/json/encoder.py", line 179, in default
- raise TypeError(f'Object of type {o.__class__.__name__} '
- TypeError: Object of type Timestamp is not JSON serializable
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/www/server/panel/BTPanel/__init__.py", line 1850, in publicObject
- res = run_obj.run(toObject, defs, get)
- File "/www/server/panel/BTPanel/__init__.py", line 1801, in run
- result = public.GetJson(result), json_header
- File "class/public.py", line 291, in GetJson
- data = ijson_obj.dumps(data)
- File "class/public.py", line 281, in dumps
- return json.dumps(self.returnMsg(False, "错误的响应: %s" % str(data)))
- AttributeError: 'ijson' object has no attribute 'returnMsg'
复制代码
|
|