Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 errors display [object object] message #5390

Open
melton-jason opened this issue Nov 8, 2024 · 0 comments
Open

404 errors display [object object] message #5390

melton-jason opened this issue Nov 8, 2024 · 0 comments
Labels
1 - Bug Incorrect behavior of the product

Comments

@melton-jason
Copy link
Contributor

Describe the bug
When an Http404 error is raised by the backend when saving a resource when webpack is in production mode, the error message is not interpreted/displayed properly by the frontend
Encountered in #5253 (review)

To Reproduce
Steps to reproduce the behavior:

From #5253 (comment):

This other Issue mentioned in #5253 (review) has been fixed as well! Now, a proper 404 error is raised whenever the resource can not be fetched (does not exist/ deleted)

Tested this with treatment event but it does not have the same error message as in the video.

  1. Go to Accession
  2. Create a Treatment Event
  3. Go to that Treatment Event's record
  4. Delete the Treatment Event from the db
  5. Go back to base record and try to save
  6. See that error is different than the comment's error

Report: Specify 7 Crash Report - 2024-11-06T19_18_57.169Z.txt
Link to: https://cuic22024-issue-114-backend.test.specifysystems.org/specify/view/accession/60/
Screen Shot 2024-11-06 at 1 54 10 PM

Screen.Recording.2024-11-06.at.1.18.41.PM.mov

From #5253 (review)

When reporting an issue on the production branch or any development version of Specify, please try to recreate the issue on the latest tagged release (v7) and indicate if it does not occur there, indicating a regression.

Expected behavior

Crash Report
Specify 7 Crash Report - 2024-11-06T19_18_57.169Z.txt

If the bug resulted in an error message, please click on "Download Error Message" and attach it here. If there is no error, please follow these instructions to download your System Information.

Please fill out the following information manually:

Additional context
This bug only occurs when webpack is in production mode.
In development mode, the proper message is displayed

@melton-jason melton-jason added the 1 - Bug Incorrect behavior of the product label Nov 8, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Front-End Backlog Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Bug Incorrect behavior of the product
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant