-
Notifications
You must be signed in to change notification settings - Fork 133
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
Present a clearer message if the site's XML-RPC is blocked or the site cannot be reached #3767
Present a clearer message if the site's XML-RPC is blocked or the site cannot be reached #3767
Comments
Related: #3977 |
Just an update on the testing steps:
I use the WP Basic authentication plugin on my test site to enable HTTP auth. Also @shiki what is the intended behaviour in this scenario? To display an error message? To allow folks to login via HTTP Auth? So when a site address is entered, the app calls the
It shows that jetpack is not connected, even though it is. So how do we know when to display the HTTP Auth dialog? I get the same error when XML-RPC is blocked too 🤔 So not sure how to differentiate between the different errors that happen. Sorry, didn't mean to pick on you @shiki but since you worked on the iOS side wanted to better understand the intended behaviour 😅 There is also a fieldguide with test sites to test all the scenarios mentioned in this issue: |
Thanks for digging in, @anitaa1990. And thanks for the poke. This issue wasn't very descriptive, was it? 😅
I only have questions about this. I did not have enough time to get this done for iOS. I created a separate issue for Android so we can tackle it separately. I have a feeling that sites protected with basic auth are rare so it's probably better to do this later. As for the other issues mentioned here, I updated the description ☝️ so it's clearer what needed to be done. Well, I hope it's clearer. So let me know if it's not.
That's interesting. I have not looked into the details of how this works. I only made sure that the WordPressKit-iOS errors are propagated to the UI. For iOS, there is a It looks like there is a similar validator and error enum in FluxC:
No problem! It's my fault because I didn't update this issue. 🙂 I just made sure that the errors are not generic and a bit more actionable. This PR shows what's been done: woocommerce/woocommerce-ios#3957. I also updated the description of this issue. |
Found in woocommerce/woocommerce-ios#3883 (comment)
Describe the bug
The app responds with an indistinct message when logging in with a site that has one of these conditions:
Is password-protected via a basic HTTP auth.(moved to Present a clearer message if the site is password-protected using Basic Auth #4282)Here is an example result:
To Reproduce
XML-RPC
This will probably work → How to Disable XML-RPC in WordPress
Offline
Expected behavior
I would expect a more specific message so that I can troubleshoot further.
This iOS PR shows what messages we should display: woocommerce/woocommerce-ios#3957.
XML-RPC
If the site blocks XML-RPC, we can be more specific. Right now, iOS can present a lot of them depending on how the site reacts. But we could probably just prioritize these error messages for XML-RPC problems:
Those “Contact your host” messages are good self-troubleshooting hints for our customers.
Offline
If offline, we should at least say “The Internet connection appears to be offline.”
iOS: woocommerce/woocommerce-ios#3891
The text was updated successfully, but these errors were encountered: