Accepting 429 status codes via Lychee github action arguments #978
-
Hi there! I am opening this after following up on previous issues and discussions with getting rate limited due to GitHub links (#644, #138 in lychee-acion) and tried the steps mentioned in the docs regarding rate limits. As of now, allowing 429 seems like the best option for us. Is there a way to properly accept both 200 and 429 status codes? I have not tried using a config file yet considering Currently, I'd greatly appreciate any help on this with possible workarounds or if there's something that we're doing wrong. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Hi @agriyakhetarpal,
Yes, as you said it's For example, consider this call:
(We read from As you can see Now if we were to accept
I saw that you use But in a previous run you actually used the correct syntax, so now I'm a little confused why it doesn't work for you. 🤔 For example here:
Actually 429 should be cached. Try to run the following commands:
A Your usage of the cache looks fine to me. I'll take a closer look at your pipeline and play around with the repo a bit to see if I can find the mistake. |
Beta Was this translation helpful? Give feedback.
-
The cache only gets created if the pipeline succeeds. So in your case the remaining errors cause it from getting created. You could either set Another thing I'm wondering about right now is if we should cache |
Beta Was this translation helpful? Give feedback.
-
I found the reason for you failing CI pipeline: Provided a fix in agriyakhetarpal/PyBaMM#1 if you want to have a look. |
Beta Was this translation helpful? Give feedback.
-
Nice catch, thank you very much! The pipeline still fails due to other links which will be fixed. Please feel free to close this. |
Beta Was this translation helpful? Give feedback.
-
Glad it helped. |
Beta Was this translation helpful? Give feedback.
I found the reason for you failing CI pipeline:
The args were inside the
env
block, causing all arguments to be ignored and the default arguments to be used instead since the very beginning.Provided a fix in agriyakhetarpal/PyBaMM#1 if you want to have a look.