Page MenuHomePhabricator

Handle internet connectivity drops gracefully
Closed, ResolvedPublic

Description

Currently, when the Pagelist Widget is unable to connect to the internet and receive a response, it will show an error message along the lines of An unexpected error was detected. Please report this error to phabricator.wikimedia.org with logs from the console.

This a canned message that we use when we are unable to determine what caused the error.

Instead of this, we should have a custom message explaining that the pagelist cannot be fetched due to network issues.

Documentation

Criteria

  • Create a new message that explains that the pagelist cannot be fetched due to network issues.
  • Display the new message when fetching the pagelist errors out due to network issues.

Event Timeline

Hi, I am a python developer and a second-year student. I would like to work on this issue can someone guide me, please?

@Hadiya8149 To solve the issue you basically need to add a special case to this function that checks if the error is an HTTP error and emits a message informing users that the pagelist couldn't be fetched due to network issues.

Change 673776 had a related patch set uploaded (by Yash9265; owner: Yash9265):
[mediawiki/extensions/ProofreadPage@master] Handle internet connectivity drops gracefully

https://gerrit.wikimedia.org/r/673776

Change 673776 merged by jenkins-bot:
[mediawiki/extensions/ProofreadPage@master] Handle internet connectivity drops gracefully

https://gerrit.wikimedia.org/r/673776