-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error: RuntimeException: Failed to get url when using wp core verify-checksums
#93
Comments
@rumspeed Thanks for the report! I think what you're seeing is checksum-command/src/Checksum_Core_Command.php Lines 84 to 88 in 310c4c5
Could you share a bit more detail on the error you'd expect to see? |
Thank you for replying @danielbachhuber.
In the Slack #cli channel on June 30th I was initially questioning if the API service was not working or maybe overloaded based on the @schlessera responded to with "The fact that the command throws a RuntimeException in this case is a bug, though." and shortly after that we agreed that I would add an issue to the GitHub repo for a deeper look. If this isn't a but then go ahead and close this out. :) |
The wordpress.org API failed a few more times recently using the |
@rumspeed Just to confirm, If this is the case, I think the problem you're referring to would be better fixed upstream. |
Yes, this is definitely an issue with the upstream server. However, given this seems a common occurrence with the WP.org APIs, I would also consider adding a retry mechanism to this command, to improve its resilience. |
Thank you for the reply @danielbachhuber. The @schlessera, is there anything else I can do to help with this? |
Bug Report
Describe the current, buggy behavior
Running
wp core verify-checksums
fails when the .org API server times out and throws aRuntimeException
. A timeout should be handled gracefully, and an error or warning thrown instead. Here is the exception error.This was reported in the Slack #cli channel on June 30th. It was also noted the the URL version number contains extra characters but still returns the checksum payload.
Describe how other contributors can replicate this bug
NOTE: This will be difficult to replicate unless you can simulate the .org API server timing out because it works 99.99% of the time.
wp core verify-checksums
Describe what you would expect as the correct outcome
A warning (or error) should be returned instead of the command throwing an exception error.
Let us know what environment you are running this on
The text was updated successfully, but these errors were encountered: