wordpress-mobile / wordpress-mobile/WordPress-Android
Change error messages that say "INVALID_RESPONSE" to use a number error code instead
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Sometimes we show a very general error message saying INVALID_RESPONSE and we could improve that by showing number error codes instead.
For example, if you try to use an IP address to connect a self-hosted site, an unexpected error is displayed:
h/t @JavonDavis, see https://github.com/wordpress-mobile/WordPress-Android/issues/8945
Note: this improvement is a candidate for project work.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the WordPress-Android codebase for occurrences of INVALID_RESPONSE and trace the self-hosted-site connection path described in the issue. Identify the existing error handling and numeric-code conventions before changing the messages; done means the relevant general errors, including the IP-address case, expose number error codes instead.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100