failed to forward action response TypeError: fetch failed - Nextjs 14 - App directory #71220
Unanswered
gabriel-logan
asked this question in
Help
Replies: 4 comments 1 reply
-
I am getting the same error, did you resolve it ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
#69635 Maybe this is related. I had that first, now I have your error. |
Beta Was this translation helpful? Give feedback.
0 replies
-
In my case, it is related to redirecting in middleware. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you guys still getting the error with Next 15 ? Mine was solved when I upgraded. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm having an error when using a server action with useEffect and having a redirect to do, I'll show the codes below:
ERROR:
Additional information
my action:
My client component
And by the way, this problem only occurs in dev mode, in production the action does not trigger undefined unintentionally. I wanted some light on this, am I doing something wrong?
Well, I expected it to only give an error if there really was an error, I believe the problem is in the strict mode rendering, BUT I don't know how to fix this.
Example
https://github.com/gabriel-logan/Junior-Challenge/tree/main/frontend/src
Beta Was this translation helpful? Give feedback.
All reactions