-
Notifications
You must be signed in to change notification settings - Fork 800
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
WPCOM memberships endpoint returns incorrect 500 status code #39153
Comments
This seems to now be impacting multiple customers of WP VIP. It may be a change in the most recent update of Jetpack, or at least within the last few versions. Our latest customer report was after a Jetpack automatic upgrade to version 13.9. |
@ThirdEyeRose @anomiex This is now fixed (at least for the Memberships status).
Maybe you should open a new issue regarding this. CC @jeherve |
Hi @millerf - we have another customer seemingly observing the same issue in 197974-z - they're seeing 500 responses being returned for this endpoint:
Is there a specific version of Jetpack that has the fix in place? Based on the PR, I think it should be fixed in 13.9.1? Fwiw, their WP version is currently 6.6, and Jetpack version is 14.0. Please also let me know if you need any further details here! |
Can you please tell me their blog ID or URL? I don't have access to the ticket... It would also help making sure their jetpack connection works fine with Pc9OEs-v-p2 |
Impacted plugin
Jetpack
Quick summary
One of our customers was concerned about the
500
errors in the application. After further investigation, we found that the membership status endpoint returns a500
status code when the user account is not connected to WordPress.com. It looks like the intended status code is404
, but the API returns a500
status code due to incorrect usage of status code in the third parameter.In the same method, the third parameter is used correctly to return the intended 404 status code. Can we please audit the status codes in the file and fix the status codes?
Steps to reproduce
The requests to the endpoint are triggered from the Block Editor.
https://example.com/wp-json/wpcom/v2/memberships/status?source=gutenberg&type=all&is_editable=true&_locale=user
A clear and concise description of what you expected to happen.
The expected 404 status code should be returned from the API.
What actually happened
No response
Impact
All
Available workarounds?
There is no user impact
If the above answer is "Yes...", outline the workaround.
No response
Platform (Simple and/or Atomic)
No response
Logs or notes
No response
The text was updated successfully, but these errors were encountered: