Frequently Asked Questions

patch-tracking FAQ

1. Connection Refused When Accessing api.github.com

Context

The following error may occur during patch-tracking execution:

sh
Sep 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'))

Possible Causes

Unstable network connectivity between patch-tracking and GitHub API services

Solution

Run patch-tracking in a network-stable environment that can reliably access GitHub API services, such as using Huawei Cloud ECS.