Resolving "Your Access to This Site Has Been Restricted" in Go HTTP Client
Accessing Github resources using Go's HTTP client can trigger a "Your access to this site has been restricted" error. This issue is particularly encountered when retrieving files like tar.gz archives from Github in an EC2 instance running on AWS.
Potential Cause
The problem likely stems from outdated software configurations, particularly the version of git and your IDE (Integrated Development Environment).
Solution
To resolve the issue, it is recommended to update both:
In IntelliJ IDEA, you can update git and the IDE simultaneously:
Once the updates are complete, re-run the Go HTTP client code to access the Github resources. The issue should be resolved, and you should be able to successfully download files.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3