-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: No error message if Github rate limit exceeded #326
Comments
For reference - some other error messages. One can argue that th error style reported to the user differs a bit, but you get sufficient info to troubleshoot. Potentially one could use try/catch and only print the stack trace in debug mode. Current printout if repo does not exist
Branch does not exist
Tag does not exist
|
Using
At least for verbose logging enabled with
Stack trace information would indeed be more valuable for contributors, e.g. as you say something like debug logging with |
I agree that it could be a good long term improvement to improve when/how we give printouts and support different levels, like normal, verbose and debug. Like using "verbose" for what a customer developer may need to troubleshoot, and debug for what an velocitas developer may need |
Severity
Medium
What release version, tag or commit-hash did you use?
main
Current Behavior
In some cases a clone request may be denied due to Github rate limiting. This may typically happen for corporate networks where the same IP is used by a large number of users. When doing
velocitas init
you may get messages like:Error: Can't find matching version for v2.5.2. Prefix with '@' for a branch or use a valid semantic version.
Even if the version actually existed and the problem is that clone failed!
Steps to Reproduce
Not easy - as you likely need quite huge number of github API requests
Expected Behavior
We cannot do anything about the rate limiting, but we should better print something like
Possible Solution
Follow up on the clone, either identify an error by the returned simple-git message, or do some sanity check of the result and if expected files are not there give error/warning
Additional Information
I do not like this template!
Code of Conduct
The text was updated successfully, but these errors were encountered: