完整讯息:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='example-for-this-question.com', port=5002): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8522fe0c40>: Failed to establish a new connection: [Errno -5] No address associated with hostname')
在成功处理数千个 requests.post 调用相同的主机名:端口时看似随机发生。
这可能是 dns 或其他与网络相关的问题吗?