request运行错误,找不到对应port

request运行错误,找不到对应port

equests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.moguding.net', port=9000): Max retries exceeded with url: /session/user/v3/login (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6eda99de50>: Failed to establish a new connection: [Errno 113] No route to host'))

找到原因了,我云服务器的ip被对方主机拉黑了,所以requests一直访问不到对方主机

域名错了,你在host哪儿加上http