PyWxDump icon indicating copy to clipboard operation
PyWxDump copied to clipboard

数据解密失败,显示'dict' object is not callable

Open lunar-David opened this issue 10 months ago • 10 comments

问题描述

rjson['body']={'detail': [{'type': 'missing', 'loc': ('query', 'key'), 'msg': 'Field required', 'input': None}, {'type': 'missing', 'loc': ('query', 'wxdbPath'), 'msg': 'Field required', 'input': None}]} rjson['msg']='请求参数存在错误!' rjson['extra']={} File "wxdump.py", line 3, in File "pywxdump\cli.py", line 383, in console_run models[args.mode].run(args) File "pywxdump\cli.py", line 343, in run start_server(port=port, online=online, debug=debug, isopenBrowser=isopenBrowser) File "pywxdump\api_init_.py", line 211, in start_server server.run() File "uvicorn\server.py", line 65, in run File "asyncio\runners.py", line 44, in run File "asyncio\base_events.py", line 603, in run_until_complete File "asyncio\windows_events.py", line 316, in run_forever File "asyncio\base_events.py", line 570, in run_forever File "asyncio\base_events.py", line 1859, in _run_once File "asyncio\events.py", line 81, in run File "uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi File "uvicorn\middleware\proxy_headers.py", line 60, in call File "fastapi\applications.py", line 1054, in call File "starlette\applications.py", line 112, in call File "starlette\middleware\errors.py", line 165, in call File "starlette\middleware\cors.py", line 93, in call File "starlette\middleware\cors.py", line 144, in simple_response File "starlette\middleware\exceptions.py", line 62, in call File "starlette_exception_handler.py", line 42, in wrapped_app File "starlette\routing.py", line 715, in call File "starlette\routing.py", line 735, in app File "starlette\routing.py", line 288, in handle File "starlette\routing.py", line 76, in app File "starlette_exception_handler.py", line 59, in wrapped_app File "pywxdump\api_init.py", line 66, in request_validation_exception_handler return ReJson(1002, {"detail": exc.errors()}) File "pywxdump\api\rjson.py", line 42, in ReJson stack = traceback.extract_stack()

[2025-04-15 21:52:17,667] INFO: 127.0.0.1:56068 - "POST /api/ls/decrypt HTTP/1.1" 500 Internal Server Error [2025-04-15 21:52:17,669] ERROR: Exception in ASGI application Traceback (most recent call last): File "starlette_exception_handler.py", line 42, in wrapped_app File "starlette\routing.py", line 73, in app File "fastapi\routing.py", line 346, in app fastapi.exceptions.RequestValidationError: [{'type': 'missing', 'loc': ('query', 'key'), 'msg': 'Field required', 'input': None}, {'type': 'missing', 'loc': ('query', 'wxdbPath'), 'msg': 'Field required', 'input': None}]

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi File "uvicorn\middleware\proxy_headers.py", line 60, in call File "fastapi\applications.py", line 1054, in call File "starlette\applications.py", line 112, in call File "starlette\middleware\errors.py", line 187, in call File "starlette\middleware\errors.py", line 165, in call File "starlette\middleware\cors.py", line 93, in call File "starlette\middleware\cors.py", line 144, in simple_response File "starlette\middleware\exceptions.py", line 62, in call File "starlette_exception_handler.py", line 53, in wrapped_app File "starlette_exception_handler.py", line 42, in wrapped_app File "starlette\routing.py", line 715, in call File "starlette\routing.py", line 735, in app File "starlette\routing.py", line 288, in handle File "starlette\routing.py", line 76, in app File "starlette_exception_handler.py", line 63, in wrapped_app TypeError: 'dict' object is not callable

复现步骤 按照小白的步骤在可视化界面操作。(执行的命令)

  1. 步骤 1 在账号信息处获得密钥
  2. 步骤 2 填入微信的msg文件
  3. 步骤 3 解密

预期行为 请清楚地描述您预期的行为。

实际行为 请描述实际的行为和问题出现的地方。

环境信息

  • pywxdump版本:3.1.45
  • 操作系统版本:win10
  • python版本:PyCharm 2023.3.4
  • 微信版本:3.9.12.51和3.8.0.41

其他信息 请提供任何与问题相关的其他信息(文字,截图等)。

Image

lunar-David avatar Apr 15 '25 14:04 lunar-David

跪求大佬解答

lunar-David avatar Apr 15 '25 14:04 lunar-David

遇到同样问题了,请问你解决了吗

zengjia121 avatar Apr 18 '25 08:04 zengjia121

请问解决了吗?我也越到这个问题

yzx10291 avatar May 07 '25 12:05 yzx10291

我也遇到同样的问题,请问解决了吗?

RenTimothy avatar May 16 '25 07:05 RenTimothy

遇到同样问题+1

Murphy-ZZH avatar May 17 '25 04:05 Murphy-ZZH

我在用日期筛选查看“聊天热力图”时同样报错TypeError: 'dict' object is not callable,python太可怕了

imldy avatar May 17 '25 10:05 imldy

这个应该是文件路径的错误问题,我的解决办法有两种: 1.把数据库文件夹复制到D盘后就可以解密。 2.使用网页工具直接解密,然后在工作路径下会自动生成merge_all.db文件,这就是已经解密并且合并后的数据,可以直接导入使用。

dengmotong avatar Jun 02 '25 09:06 dengmotong

同问这个问题 一摸一样 微信版本:3.9.12.51

hankun88666 avatar Jun 04 '25 02:06 hankun88666

同样的问题,一个微信可以,一个微信不可以,然后下了另外一个版本的微信3.9.9,就可以了

jiandandkl avatar Aug 16 '25 00:08 jiandandkl

lanalters avatar Sep 15 '25 02:09 lanalters