wordpress-mobile / wordpress-mobile/WordPress-Android

Change error messages that say "INVALID_RESPONSE" to use a number error code instead

Open
#10,406 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Status] Stale [Type] Enhancement General
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:

screenshot_2018-12-05-19-47-03 h/t @JavonDavis, see https://github.com/wordpress-mobile/WordPress-Android/issues/8945

Note: this improvement is a candidate for project work.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.