Skip to content

fix: [BUG] Internal Server Errors still shows success toast (closes #3302)#1

Open
autodev-botbit wants to merge 1 commit into
mainfrom
fix/issue-3302-20260614173822
Open

fix: [BUG] Internal Server Errors still shows success toast (closes #3302)#1
autodev-botbit wants to merge 1 commit into
mainfrom
fix/issue-3302-20260614173822

Conversation

@autodev-botbit

Copy link
Copy Markdown
Owner

Fix for formbricks#3302

Summary

The bug occurs when the backend returns a 200 status code with a serverError field in the response, but the frontend doesn't check for this field and incorrectly shows a success toast. The fix involves modifying the frontend code to check for serverError in the response and throw an error if present.

Changes

  • apps/web/app/error.tsx: Add serverError check in the error handling logic

Testing

npm test: FAILED (may need setup)


This PR was automatically generated to address the bounty issue formbricks#3302.
Please review the changes carefully before merging.

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

Successfully merging this pull request may close these issues.

1 participant