常见问题

patch-tracking常见问题与解决方法

问题1:访问 api.github.com Connection refused 异常

问题描述

patch-tracking 运行过程中,可能会出现如下报错:

sh
 9月 21 22:00:10 localhost.localdomain patch-tracking[36358]: 2020-09-21 22:00:10,812 - patch_tracking.util.github_api - WARNING - HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /user (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xfffe19d35820>: Failed to establish a new connection: [Errno 111] Connection refused'))

原因分析

以上问题是 patch-tracking 与 GitHub API 服务之间网络访问不稳定导致。

解决方法

请确保在与 GitHub API 服务之间网络稳定的环境中(如使用华为云ECS弹性云服务器)运行 patch-tracking。