Closed ehausen closed 2 years ago
Sounds like a good improvement to the plugin. I'll bring to our standup. Thanks @ehausen
@jeffpaul @TheLastCicada Adding a +1 to this one—ran into it on some testing today and I believe it may be impacting the accuracy of our results on certain sites. When I did wp cache get to see the scanner's transient data, I saw a 429 error from the Cloudflare endpoint and an out of quota message. We would absolutely want this to generate an error message and exit code that can be captured in a script for alerting purposes instead of serving stale or wrong results.
Noting that @TheLastCicada would also like to see the plugin:
handle API errors or other messages besides a status 200 reply more effectively
Describe the bug
Even if my API quota for wpvulndb.com is full for the day the vulnerability scanner just says no vulnerabilities found
Steps to Reproduce
Retry Later
wp vuln status
once more and see that everything looks like its running pretty normallyExpected behavior
I would expect the tool to clearly state ERROR API QUOTA FULL or something