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

ubus接口格式错误 #73

Closed
A-Cepheus opened this issue Jun 21, 2024 · 6 comments
Closed

ubus接口格式错误 #73

A-Cepheus opened this issue Jun 21, 2024 · 6 comments

Comments

@A-Cepheus
Copy link

docker部署,提示Exception: Error https://api2.mina.mi.com/remote/ubus: {"code":601,"message":"illegal argument exception","data":"IllegalArgumentException: ubus call format illegal!"}

@hanxi
Copy link
Owner

hanxi commented Jun 21, 2024

有没有完整的日志?

@hanxi
Copy link
Owner

hanxi commented Jun 22, 2024

也说下是什么型号

@hanxi
Copy link
Owner

hanxi commented Jun 23, 2024

#74 这里优化了这个问题,可以配置独立的配置目录,需要重新保存一下设置。

@hanxi hanxi closed this as completed Jun 23, 2024
@losingrose
Copy link

losingrose commented Jun 25, 2024

MI_HARDWARE='X08E'
设置MI_DID以后不出错了,不过好像页面功能不能使用,估计是api不一样,我记得我这个设备播放是 7

X08E好像不能使用player_play_url播放,执行了没反应,返回结果{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}}
估计要改用miio_service模式

@losingrose
Copy link

还有ipv6的绑定是host = "::",建议吧host = "0.0.0.0"参数也写成环境变量。

@hanxi
Copy link
Owner

hanxi commented Jun 25, 2024

还有ipv6的绑定是host = "::",建议吧host = "0.0.0.0"参数也写成环境变量。

不想ipv6被访问到端口可以在docker配端口时修改的,见 https://stackoverflow.com/questions/30750271/disable-ip-v6-in-docker-container

也可以配防火墙禁用就行了的。

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