Code Monkey home page Code Monkey logo

Comments (19)

zlc000190 avatar zlc000190 commented on June 7, 2024 5

@greatbody 解决ssl 997错误
您可以尝试安装 certifi 库。
你可以像这样用 pip 安装它。
pip install certifi
安装后你可以使用这个命令
/Applications/Python\ 3.10/install\ Certificates.command
只需将 python 版本更改为您在环境中使用的版本
并尝试再次运行您的程序。

这对我有用。

from xiaogpt.

yihong0618 avatar yihong0618 commented on June 7, 2024

check your network it should not include proxy

from xiaogpt.

zlc000190 avatar zlc000190 commented on June 7, 2024

vpn关闭了 还是不行

from xiaogpt.

zlc000190 avatar zlc000190 commented on June 7, 2024

代理都关闭也不行,查了很多,说是Charles 关闭。 我都没开Charles 还有代理检查已经 查出没用代理了。还是不行。 证书问题吗? 这个就不知道怎么弄了

from xiaogpt.

pjq avatar pjq commented on June 7, 2024

本地命令行能打开吗

curl -vv account.xiaomi.com

from xiaogpt.

pjq avatar pjq commented on June 7, 2024

这个提示就是MITM, 中间证书被拦截了, CERTIFICATE_VERIFY_FAILED, 如果Mac的, 看一下设置
image

from xiaogpt.

zlc000190 avatar zlc000190 commented on June 7, 2024

@pjq 好的,非常感谢,mac 我试一下

from xiaogpt.

zlc000190 avatar zlc000190 commented on June 7, 2024

代理设置这里我之前查看过了,都是关闭的。 curl -vv account.xiaomi.com 运行后的结果 看来,有个 TCP_NODELAY set

 curl -vv account.xiaomi.com

  •   Trying 123.125.102.21...
  • TCP_NODELAY set
  • Connected to account.xiaomi.com (123.125.102.21) port 80 (#0)

GET / HTTP/1.1
Host: account.xiaomi.com
User-Agent: curl/7.64.1
Accept: /
 
< HTTP/1.1 301 Moved Permanently
< Server: Server
< Date: Fri, 03 Mar 2023 07:36:07 GMT
< Content-Type: text/html
< Content-Length: 238
< Connection: keep-alive
< Location: https://account.xiaomi.com/

<title>301 Moved Permanently</title>

301 Moved Permanently


Powered by Server
tengine * Connection #0 to host account.xiaomi.com left intact * Closing connection 0

from xiaogpt.

zlc000190 avatar zlc000190 commented on June 7, 2024

这是代理的设置

image

from xiaogpt.

pjq avatar pjq commented on June 7, 2024

看你的设置好像没什么问题

from xiaogpt.

zlc000190 avatar zlc000190 commented on June 7, 2024

@pjq 是啊,我检查了但是就是一直报这个错

from xiaogpt.

joe12801 avatar joe12801 commented on June 7, 2024

我根你一样,都有这个问题

from xiaogpt.

zlc000190 avatar zlc000190 commented on June 7, 2024

我解决了这个,但是ChatGPT那个又有问题

from xiaogpt.

greatbody avatar greatbody commented on June 7, 2024

我解决了这个,但是ChatGPT那个又有问题

求教如何解决的。

from xiaogpt.

Thxonly avatar Thxonly commented on June 7, 2024

我解决了这个,但是ChatGPT那个又有问题

求教如何解决的。

试试这个方法:https://github.com/Maxmudjon/Get_MiHome_devices_token

from xiaogpt.

zlc000190 avatar zlc000190 commented on June 7, 2024

@Thxonly 你这种思路解决了吗 运行成功没

from xiaogpt.

yihong0618 avatar yihong0618 commented on June 7, 2024

fixed
run:

pip3 install -U git+https://github.com/yihong0618/MiService

from xiaogpt.

zs1621 avatar zs1621 commented on June 7, 2024

参考这个 -> aio-libs/aiohttp#955 (comment)

from xiaogpt.

woiweb avatar woiweb commented on June 7, 2024

问题已经解决

Problem solved,you should reinstall the cerfificate,the comman as follow:

Navigate to
cd /Applications/Python\ 3.7/

Click on Install Certificates.command

This should solve it.

refer to:aio-libs/aiohttp#955 (comment)

from xiaogpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.