Giter Site home page Giter Site logo

Comments (6)

night-raise avatar night-raise commented on May 9, 2024

请提供必要的截图和异常说明。

from checkinpanel.

lustime avatar lustime commented on May 9, 2024

请提供必要的截图和异常说明。

现在没问题了 接口好了,这是之前报错

    return self.read(nbytes, buffer)
68
  File "/usr/lib/python3.8/ssl.py", line 1099, in read
69
    return self._sslobj.read(len, buffer)
70
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
71
​
72
During handling of the above exception, another exception occurred:
73
​
74
Traceback (most recent call last):
75
  File "Oreomeow_checkinpanel_master_ck_smzdm.py", line 88, in <module>
76
    send("什么值得买", res)
77
  File "/ql/scripts/notify_mtr.py", line 536, in send
78
    text = one() if hitokoto else ""
79
  File "/ql/scripts/notify_mtr.py", line 481, in one
80
    res = requests.get(url).json()
81
  File "/usr/lib/python3.8/site-packages/requests/api.py", line 76, in get
82
    return request('get', url, params=params, **kwargs)
83
  File "/usr/lib/python3.8/site-packages/requests/api.py", line 61, in request
84
    return session.request(method=method, url=url, **kwargs)
85
  File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
86
    resp = self.send(prep, **send_kwargs)
87
  File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
88
    r = adapter.send(request, **kwargs)
89
  File "/usr/lib/python3.8/site-packages/requests/adapters.py", line 498, in send
90
    raise ConnectionError(err, request=request)
91
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
92
​
93
## 执行结束... 2021-11-06 16:53:58 耗时 16 秒
94

from checkinpanel.

wzwcc avatar wzwcc commented on May 9, 2024

@lustime 这是你网络问题把。。。

from checkinpanel.

lustime avatar lustime commented on May 9, 2024

@lustime 这是你网络问题把。。。

https://v1.hitokoto.cn/ 下午那会4g都访问不了了。现在好了

from checkinpanel.

wzwcc avatar wzwcc commented on May 9, 2024

@lustime

from checkinpanel.

night-raise avatar night-raise commented on May 9, 2024

已经增加异常处理。

from checkinpanel.

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.