AlexsLemonade / AlexsLemonade/refinebio-web

Refactor page components to handle 404 and 500 errors

Open
#462 0 comments 0 reactions 1 assignee View on GitHub

@nozomione is already working on this.

Since Feb 14, 2025.

Post QA
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Context

We've implemented error handling at both the app level and the page level.

At the app level, we handle the following errors:

  • 404 Not Found
  • 500 Internal Error
  • 504 Gateway Timeout

Currently, at the page level, we only handle 404 Not Found.

Problem or idea

We want to refactor the page components to handle both 404 and 500 errors.

The changes should be as follows:

  • Return a 404 response when no resource is found.
  • Return a 500 response otherwise
Solution or next step

Update the following page components to handle 404 and 500 errors within getServerSideProps:

  • pages/compendia/
  • pages/dataset/
  • pages/experiments/
  • pages/search

Contributor guide

No contributing guide indexed for this repository

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.