-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Lychee expects string for accepted status codes #644
Comments
Latest lychee with these changes wasn't released yet. 😉 It will be part of 0.11.0 since it's a breaking change. For now you need to use a string, yes. I can't remember if the current |
Thanks, I should have checked the releases first to make sure if v0.10.0 includes this change or not. My bad. Closing. |
No worries. 😆 |
@mre Although I want to ask what is the expected outcome of having an accepted status code. Referring to #634, I have added 429 to accepted status codes, but the report and result still list "Too many network request" errors. Is that expected? Check out my config here balena-io/docs#2317 |
Hum... it should work like you specified it and it should accept 429 as a valid status code. Not sure what's up with that. Can you try to pass |
That was much better, 429 is being clearly accepted when I ran using the command line arg. Logs show it being green and no 429 in the report @mre |
Okay then our merging is borked. I think we wanted to switch to https://github.com/mehcode/config-rs for config merging, but I can't remember the crate anymore and I can't find the issue. PRs to fix this are very welcome. I'll keep this open for now. |
@vipulgupta2048 can you test the latest |
My config: # Comma-separated list of accepted status codes for valid links.
accept = [200, 429] |
For the record, we could move to config-rs once clap is supported (rust-cli/config-rs#328) |
Thanks @mre, I was out on vacation so couldn't act on this. I tried building master v0.10.1, tested and it works as expected. Made a PR to get this change merged. Closing the issue. |
Hey @mre can you release a new patch of the lychee action? Having v0.10.1 inside? |
@vipulgupta2048 lychee v0.10.1 is already the default since lychee-action v1.5.1 (released a few weeks ago). |
With #636, Lychee add support for parsing status code using v0.10.0 I am getting the error
When I am specifying status codes like:
The error goes away when I specify status codes as string which was the old format. I am trying to read the PR and make a patch for this. I feel like the
parse_statuscodes
function still expects string but not completely sure how the tests would have been passing then.The text was updated successfully, but these errors were encountered: