Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nanweiqing opened this issue Dec 20, 2023 · 1 comment
Open

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

nanweiqing opened this issue Dec 20, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@nanweiqing
Copy link

你好,我小爱型号是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'

@yihong0618
Copy link
Owner

你这个是登陆没成功。

@yihong0618 yihong0618 added the good first issue Good for newcomers label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants