yihong0618/xiaogpt

LX04型号小爱音箱,调用最近对话记录报错

Open

#405 opened on Dec 20, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (643 forks)batch import
good first issue

Repository metrics

Stars
 (4,446 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

你好,我小爱型号是LX04,在调用最近对话记录报如下错误 : 代码处: r = await session.get( LATEST_ASK_API.format( hardware=hardware, timestamp=str(int(time.time()* 1000)) ), cookies=parse_cookie_string(cookie)) chatmsg=await r.json() 错误: <ClientResponse(https://userprofile.mina.mi.com/device_profile/v2/conversation?source=dialogu&hardware=LX04&timestamp=1703089126009&limit=2) [401 None]>

message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8'

Contributor guide