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

🐛 Bug Report: handleFormSubmit function does not properly handle error #504

Open
2 tasks done
prakhyatc opened this issue Oct 14, 2024 · 0 comments
Open
2 tasks done

Comments

@prakhyatc
Copy link

📜 Description

If an error occurs during the submission process, it will be caught by the generic catch block, but the error message will not be displayed to the user.

👟 Reproduction steps

  1. Ensure the createJob API endpoint or the uploadFileAction function is mocked or simulated to return an error response (e.g., 500 Internal Server Error
  2. Click the submit button to trigger the handleFormSubmit function.
  3. Observe the console or error logs.

👍 Expected behavior

The error should be caught and displayed to the user through the toast notification system.

👎 Actual Behavior with Screenshots

The error is caught by the generic catch block, but the error message is not displayed to the user.The error is logged to the console, but no user-friendly error message is shown.

OS name

MacOS

browser name

Chrome

npm version

No response

node version

No response

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

Yes I am willing to submit a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant