Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

wesdk中get_personal_info报错 #7

@HenryXiaoYang

Description

@HenryXiaoYang

from wesdk import *
bot = Bot('127.0.0.1', 5555)
print(bot.get_personal_info())


{'content': {'content': '[json.exception.type_error.316] invalid UTF-8 byte at index 0: 0x98', 'id': '20230501064619', 'receiver': 'CLIENT', 'sender': 'SERVER', 'srvid': 1, 'status': 'FAILED', 'time': '2023-05-01 06:46:19', 'type': 6500}, 'id': 'cdf5f0c9-eb6d-4024-b0f6-f4fdc487eaf9', 'receiver': 'CLIENT', 'sender': 'SERVER', 'srvid': 1, 'status': 'SUCCSESSED', 'time': '2023-05-01 06:46:19', 'type': 6500}

打断点后发现这行出了问题, post返回就给了这个报错

wesdk/bot.py
rsp = requests.post(url,json={'para':base_data},timeout=5)

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