Next.js Discord

Discord Forum

Server action returning 303

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Original message was deleted.

8 Replies

Barbary Lion
Original message was deleted
Barbary Lion
Here's the implementation
Can I see where you're calling the server action from?
Barbary Lion
Here its a client component
What is happening exactly is, it works the first time, but then I doesn't, I think it might somehow be caching the action, so it doesn't run again
thus returning a 303, idk tho just guessing really
Barbary Lion
Also important to mention that I am using turbopack, altought I don't think it really applies here
It seems like you're first screenshot was deleted, but just a hunch, maybe the error comes from the fact that you're generating the action dynamically with a factory method?

Maybe that's why you get a 303 error, because Next can't track the specific action you're referring to?