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

Speaker ❌ 初始化 Mi Services 失败 #62

Closed
imhsz opened this issue Jun 9, 2024 · 23 comments
Closed

Speaker ❌ 初始化 Mi Services 失败 #62

imhsz opened this issue Jun 9, 2024 · 23 comments

Comments

@idootop
Copy link
Owner

idootop commented Jun 9, 2024

你试试看在浏览器开代理登录下你的小米账号,然后过个大概半个小时重新启动下。

@idootop
Copy link
Owner

idootop commented Jun 9, 2024

你手机上下载个米家登录试试看呢?米家登录的时候是会走到mina的登录流程的,验证一下。

@imhsz
Copy link
Author

imhsz commented Jun 10, 2024

因为家里有小爱,我手机一直登着米家,没问题的

@idootop
Copy link
Owner

idootop commented Jun 10, 2024

退出重新登录

@idootop
Copy link
Owner

idootop commented Jun 10, 2024

看你第一张图发的,只是登录超时,看不出来哪里有毛病。

@imhsz
Copy link
Author

imhsz commented Jun 10, 2024

手机重登没问题.
我跟踪代码,发现请求了很多个登录接口,一直验证不过,最后到这个超时的,这个超时的我在浏览器访问也是超时.

@idootop
Copy link
Owner

idootop commented Jun 10, 2024

不太好调试,看起来你这个账号登录行为比较特殊。如果你能接受的话,可以在我个人公众号后台,私发一下你的账号密码,我帮你本地联调下(联调完再把密码改掉)

@imhsz
Copy link
Author

imhsz commented Jun 11, 2024

已发账号密码

@idootop
Copy link
Owner

idootop commented Jun 11, 2024

@imhsz 破案了,MIoT 查询到的设备名称和米家里设置的不一致(中间多出来一个空格)。
等下一个版本修复这个问题后,你可以填写设备真实的 did 来解决此问题。

图片

@idootop
Copy link
Owner

idootop commented Jun 11, 2024

或者你也可以先在米家中把设备名称改成带空格的,也能正常用。

@idootop
Copy link
Owner

idootop commented Jun 11, 2024

@imhsz v3.1.0版本已发布,修复了此问题。

@idootop idootop closed this as completed Jun 11, 2024
@imhsz
Copy link
Author

imhsz commented Jun 11, 2024

还是不行,我原来就是抄米家带空格的,刚刚把米家空格和配置里去掉了.另外之前也手动设置过did.

@imhsz
Copy link
Author

imhsz commented Jun 11, 2024

IOT是有的,是MiNA没有,也是MiNA最后超时了

@imhsz
Copy link
Author

imhsz commented Jun 11, 2024

第一次登录失败
image
这里被重置
image
未定义
image
image
然后,结束再起,报超时:
image

@idootop
Copy link
Owner

idootop commented Jun 11, 2024

网络问题。昨天你的账号在我本地测试 mina 可以正常获取到 device。

@imhsz
Copy link
Author

imhsz commented Jun 12, 2024

我在公司和家里都一样的问题,网络环境这个我认为概率不大

@idootop
Copy link
Owner

idootop commented Jun 12, 2024

昨天用你的账号测试一切正常,可成功登录 Mina 和 MioT 并获取到设备列表。所以我说是网络原因。

@idootop
Copy link
Owner

idootop commented Jun 12, 2024

控制台输出的日志链接,应该没法直接在浏览器打开,需要带上 cookie 访问才有效

@idootop
Copy link
Owner

idootop commented Jun 13, 2024

@imhsz 上海电信网络,使用你昨天提供给我的账号登录一切正常:

图片

@ryanlxb
Copy link

ryanlxb commented Jun 15, 2024

我的方法是给设备改个名字就行了

@idootop
Copy link
Owner

idootop commented Jun 15, 2024

经过测试 @imhsz 的设备一切正常,可完美进行连续对话。上面登录超时的问题是因为他在本地 clone 了项目后,代码和 build 后的 dist 产物不是最新版本,存在一些潜在的冲突。更新到最新代码重新 build 后,可以正常使用了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants