-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
KeyError on updating auto-cpufreq during exhausted GitHub API calls #656
Comments
We can possibly add few checks at auto-cpufreq/auto_cpufreq/core.py Line 183 in b4c5276
Using <dict>.get() and then checking if I currently have exams coming by, so if anyone else want volunteer for it, then please go for it 😄 |
To reproduce this, one can manually exhaust their API keys, (don't worry it will automatically reset in 1 hr). Please however don't abuse this! for i in $(seq 0 60); do
curl -fsSL https://api.github.com/repos/AdnanHodzic/auto-cpufreq/releases/latest
done |
Thanks for finding this. Should now give an error message after the PR merge |
To not deal with the api, not sure if would be usefull:
or for the latest
|
Problem
When calling
sudo auto-cpufreq --update
during exhausted GitHub API calls, it results in an error. A better approach would be to let the user know about the exhausted API calls and inform them. These situations can commonly occur when using auto-cpufreq in workspaces or colleges with shared WiFi.Temporary Fix
For other having the same issue, the fix would be to temporarily switch to alternate network provider/VPN for a change.
Useful Info
Here is a sample response for call to
https://api.github.com/repos/AdnanHodzic/auto-cpufreq/releases/latest
Error output:
System information:
Click to expand
edit: IP removed 😅
The text was updated successfully, but these errors were encountered: