Skip to content

CSV导出操作失败 #248

@sulfurvapour

Description

@sulfurvapour

问题描述
实际有聊天记录,CSV导出操作失败,JSON导出成功

复现步骤
聊天记录页面操作CSV导出

Image

实际行为

看得到聊天记录,json格式导出也是有数据的,但CSV格式提示导出失败
代码提示错误信息如下:
INFO: 127.0.0.1:14813 - "POST /api/rs/export_csv HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "uvicorn\protocols\http\h11_impl.py", line 406, in run_asgi
File "uvicorn\middleware\proxy_headers.py", line 70, in call
File "fastapi\applications.py", line 1054, in call
File "starlette\applications.py", line 123, in call
File "starlette\middleware\errors.py", line 186, in call
File "starlette\middleware\errors.py", line 164, in call
File "starlette\middleware\cors.py", line 93, in call
File "starlette\middleware\cors.py", line 148, in simple_response
File "starlette\middleware\exceptions.py", line 65, in call
File "starlette_exception_handler.py", line 64, in wrapped_app
File "starlette_exception_handler.py", line 53, in wrapped_app
File "starlette\routing.py", line 754, in call
File "starlette\routing.py", line 774, in app
File "starlette\routing.py", line 295, in handle
File "starlette\routing.py", line 77, in app
File "starlette_exception_handler.py", line 64, in wrapped_app
File "starlette_exception_handler.py", line 53, in wrapped_app
File "starlette\routing.py", line 74, in app
File "fastapi\routing.py", line 278, in app
File "fastapi\routing.py", line 193, in run_endpoint_function
File "starlette\concurrency.py", line 42, in run_in_threadpool
File "anyio\to_thread.py", line 56, in run_sync
File "anyio_backends_asyncio.py", line 2177, in run_sync_in_worker_thread
File "anyio_backends_asyncio.py", line 859, in run
File "pywxdump\api\remote_server.py", line 436, in get_export_csv
code, ret = export_csv(wxid, outpath, db_config, my_wxid=my_wxid)
File "pywxdump\api\export\exportCSV.py", line 34, in export_csv
users.update(users_t)
ValueError: dictionary update sequence element #0 has length 9; 2 is required

环境信息

pywxdump版本:v3.1.45
操作系统版本:Windows 10 专业版 x64
微信版本:3.9.12.51

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions