Summary
When a wiki is configured to insert jobs into a database table, the IP Info REST APIs return a 500 error when the site is in read only mode along with a stack trace. This should instead return a more user friendly error.
Background
- When a user uses the IP Info popup or infobox, a REST API request is made to the IPInfo REST APIs
- This request will create a log entry if the subject is defined (which is in most cases)
- Inserting jobs on wikis may require writing to the DB, if the $wgJobTypeConf is configured to use the DB (which is the default)
- Even if the job is inserted, the write in the job will still fail
- When in read-only mode we should probably disable the REST APIs because we need to log the use of them.
Acceptance criteria
- IP Info REST APIs return a user-friendly error message when the site is in read only mode

