mattermost / mattermost/mattermost-plugin-github

Handle case where sidebar API endpoints return null

Open
#235 4 comments 2 reactions 1 assignee View on GitHub

@DHRUVI5674 is already working on this.

Since Mar 2, 2026.

Difficulty/1:Easy Good First Issue Hacktoberfest Help Wanted Tech/Go Tech/ReactJS Type/Bug
Dominant language
Go
Stars
179
Forks
180
Avg merge
1d 16h
Merged PRs (30d)
13

Description

Summary

On the community server I experienced an issue where the reviews, yourprs, and yourassignments API endpoints are returning 200s, but return null for the response body. The unreads endpoint was returning valid data. Clicking one of the categories that returned null results in the webapp crashing.

I believe this was caused by a short outage on GitHub's part, as I was also experiencing issues while searching for PRs and issues on GitHub's interface today. Nevertheless, the plugin should be resilient to this and make sure the webapp does not crash in this case. The fixes be:

  • Backend should return a non-200 when something went wrong fetching from GitHub
  • If an error was not returned from GitHub, but something still went wrong, the backend should return an empty list instead of null

The frontend should also defend against the null pointer exception, and make sure the crash does not happen in this case.

Screenshots

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.