问题标题 : chen
工单编号 : SWN227601971500 工单类型 : 入门 提交时间 : 2022-07-15 09:39:56 工单状态 : 完成
联系方式 : 邮件 联系信息 : 727564737@qq.com
问题描绘
问题描述: 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
客服 - chic.ye :

 

HTTP_GET_json_Chic.rar


2022-07-15 10:52:13
用户 :

用接口工具测试后台是正常的,但是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
用户 :

我明白问题了,不好意思

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