-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unhandled exception raised at runtime: 'x-ratelimit-remaining'
.
#57
Comments
Thanks @id-tari, the error you see is the "catch-all" exception handler here 👍 If I had to guess, I'm assuming the response from github doesn't contain the - if int(response.headers['x-ratelimit-remaining']) == 0:
+ if int(response.headers.get('x-ratelimit-remaining', default=0)) == 0: That's just my first instinct - could be wrong 🙂 Would you be interested in trying to create a fix? If you're comfortable with it, how you would need to do it is:
If that sounds too complicated, I might have time to fix this later in the week 🙂 |
Thanks @sondrelg! Now there is another error:
This time it does not make sense to set default value for a key if header is not found. Something is wrong really wrong, headers and values are missing. Unfortunately looks like I don't have time to learn Docs: |
Sorry, actually if you just do this instead
it should work |
Yay worked! I'll make a PR from a different acc. |
Thanks @Pho3niX90. I must have missed the PR for this. If I can I'll take a look and get it merged this weekend 👍 |
The latest release redoes rate limiting completely. It should fix this issue, and a few more. If you have time, the migration guide for v3 is included in the release post 👍 I would greatly appreciate feedback if you have any. If you run into any issues, please share them in the issue opened for tracking the v3 release |
Running action v2.
During the first run it has discovered and deleted 147 untagged, 1 week old images.
By the end action throws exception messages:
604 times/log-lines
Unfortunately there are no additional outputs, and action did not exit with error.
Action has finished "successfully".
Initially as test I was trying to delete only untagged, at least 1 week old images.
After initial run I had left 521 untagged image.
2nd run has discovered 70 images for deletion. Tons of exception messages still appear.
3rd run deleted 96 images.
4th run deleted 61 images. etc ...
Even "enable debug output" on action run is not showing anything useful.
I'm not sure how to debug this behavior, will greatly appreciate your ideas. (not a pro python developer)
The text was updated successfully, but these errors were encountered: