How to handle client side error for server action requests? #73820
Unanswered
canopy-cj
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Server action request was blocked via third party system that modified the request and response with status
403 forbidden
. In this case, server action was returning asundefined
which resulted that user not getting notified for either error or data.Is there a way to catch this non status 200 for server action and throw a specific error? Capturing
undefined
is not ideal especially function likeredirect
will also return asundefined
in server actionBeta Was this translation helpful? Give feedback.
All reactions