Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Add error handling to checkout process #40

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seer-by-sentry[bot]
Copy link

Fixes REACT-5FV. The issue was that: Backend process_order raises unhandled Exception for insufficient inventory, causing Flask to return a 500 Internal Server Error.

  • Added a try-except block to the checkout route to catch any exceptions that occur during the process_order function.
  • If an exception occurs, return a 400 error with a JSON response containing the error message.

This fix was generated by Seer in Sentry, triggered by [email protected]. 👁️ Run ID: 318968

Not quite right? Click here to continue debugging with Seer.

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

Successfully merging this pull request may close these issues.

0 participants