-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Confusing/Unhelpful Error at Login When XML-RPC Is Blocked #8459
Comments
iOS version: wordpress-mobile/WordPress-iOS#10293 |
A few thoughts:
|
All of these make sense as a new project. I think switching to the other endpoint is not a short time fix. Quoting the docs - "RSD is the least-preferred method of autodiscovery" and we still use it - so we should definitely plan this. If we get a list of sites that are showing the incorrect message, we could investigate them and try to fix them. |
@planarvoid Is PR wordpress-mobile/WordPress-FluxC-Android#943 supposed to fix this issue? I'm not sure how to reproduce this so I thought I'd ask you first. |
@shiki I don't think so. I think the issue is much bigger and this only added some additional information in one certain case. I don't remember the details though |
I like Aerych's proposal, but I completely agree with Vojta. It might be better to handle it in a small project and not as a quick groundskeeping fix. @SiobhyB I've tried the following and all the messages looked ok
Can you please confirm it works as expected and close the issue. Thank you! Update: cc @designsimply |
@malinajirka Do you know the steps to reproduce each scenario in the app? If so, could you document them? I know we can manually trigger each one from the code, but I am not entirely sure how to setup the site to do it. |
@oguzkocer IIRC the testing steps are the same for all the errors. The only thing that changes is the URL of the self-hosted site. I used the URLs from the
The urls in the test.properties has the following comments
Let me know if you need more info ;) |
Thanks @malinajirka! @designsimply I've also verified that we are getting the messages we expect from the server for each case as documented by Jirka in this comment. My suggestion is to close this issue. If we feel further improvement is necessary, we can open a new issue describing the expectations. I think the current messages are very descriptive and any further improvement here will have diminishing returns. Related to the discussion we were having on Slack about a way for HEs to test/reproduce the issue, I think these error messages will likely be enough. If we feel they are lacking in this regard, it'd be good to document why that is in a separate issue and figure out the best way to tackle it. |
@malinajirka, sorry that I missed your ping originally! I was on sabbatical at the time and pretty much wiped all emails when I was back. 🤦♀️ I'm seeing the "missing XML-RPC methods" error when testing a few examples but there also still seem to be some cases where the generic "couldn't connect to WordPress site" error is show, such as the site listed in 3829320-zen. I also see a more recent issue was created in #12401 for this. I'm happy for this older one to be closed in favour of that one. |
No worries at all @SiobhyB! These two issues seem quite similar. I'd suggest closing this one as you suggested. We might also consider assigning the other issue to groundskeeping if you feel it should be prioritized. Wdyt? |
+1 to closing in favor of #12401 and adding to Groundskeeping. I'll do both. 👍 |
Expected behavior
If I enter the URL for a WordPress site that blocks XML-RPC, I expect to receive a helpful error message that informs me why I'm not able to log into that site via the app.
Actual behavior
The following error appears when a URL for a WordPress site that blocks XML-RPC is entered:
"Couldn't connect to WordPress site. There is no valid WordPress site at this address. Check the site address (URL) you entered."
Screenshot:
Steps to reproduce the behavior
Tested on Pixel, alpha-132 of WordPress for Android
As per this convo, more informative error messages were displaying in the Android app until at least March:
https://a8c.slack.com/archives/C9JMWK5HQ/p1520333424000220-slack-happier-hes
It seems the code for these errors are defined here:
https://github.com/wordpress-mobile/WordPress-FluxC-Android/blob/develop/fluxc/src/main/java/org/wordpress/android/fluxc/network/discovery/SelfHostedEndpointFinder.java
The text was updated successfully, but these errors were encountered: