待解决
已受理
待回复
完成
Question title : chen
Work order Number : SWN227601971500
Work order type : 入门
Submission time : 2022-07-15 09:39:56
Work order status : 完成
Contact information : Email
Contact information : 727******@qq.com

Communication record

  • 问题描述:
    request-http 里面post请求,发送以后报错:RuntimeError: HTTPConnectionPool(host='http://127.0.0.1:8000/common/message_forward', port=8080): Max retries exceeded with *l: / (C*sed by NewConnectionError Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。')),请求的*l地址端口是8000,但是提示端口8080是什么意思,需要怎么修改这个端口
  • chic.ye : 已收到您的工单,我们将会尽快安排人手进行处理。
    2022-07-15 10:50:02
  • chic.ye :

    这个不影响实际使用,主要看你的代码


    request
    ujson
    utime
    
    url = response = request.get(url) (response.status_code)
    ret = response.json()
    (ret)
    (ret[])
    (ret[])
    (ret[])
    (ret[][])
    (ret[][])
    (ret[][])
    (ret[][])
    (ret[][])


    2022-07-15 10:51:25
  • 2022-07-15 10:52:13
  • Anonymous users :

    用接口工具测试后台是正常的,但是thonny里面一直报错,提示的没有返回,实际后台根本没有收到请求。

    INFO:HTTP POST:Network connection successful!

    Traceback (most recent call last):

      File "<stdin>", line 93, in sim_message

      File "request.py", line 217, in post

      File "request.py", line 141, in request

    RuntimeError: HTTPConnectionPool(host='http://127.0.0.1:8000/common/message_forward', port=8080): Max retries exceeded with url: / (Caused by NewConnecti"/upload/image/20220715/1657859726622118.png" title="1657859726622118.png" alt="image.png" width="599" height="457" style="width: 599px; height: 457px;"/>

    2022-07-15 12:39:50
  • Anonymous users :

    我明白问题了,不好意思

    2022-07-15 12:49:46
  • chic.ye : 客服已经将本工单结束,如有疑问请重新发起工单咨询,谢谢!
    2022-07-15 13:35:15

Waiting for your appraise