Server Action causing unknown issue
Unanswered
Brokenwind posted this in #help-forum
Hello, I'm getting a weird issue with server actions. I have an action that takes an unknown time, pressumably more than 5 minutes. Here's the issue, the action never finish and accessing other pages makes it on infinite loading state so the whole system is unusuable. after 5 minutes from the request. If I access any page within 5 minutes of making the server action, it will still load. Tried both in dev and prod environment and the issue is the same. I'm not hosting it in vercel and only hosting it on localhost. I have no specific errors or any message that would show up both client and server side.
I'm running the 15.1.6 with node 23.6.0.
My theory is Node has a built-in limit for API request of around 5 minutes and since server actions are technically just APIs, hitting this limit on Node causes this issue. Any fix or workaround for this?
I'm running the 15.1.6 with node 23.6.0.
My theory is Node has a built-in limit for API request of around 5 minutes and since server actions are technically just APIs, hitting this limit on Node causes this issue. Any fix or workaround for this?
2 Replies
Another behavior I've experienced:
When the timeout happens, I would kill the running process in the terminal via Ctrl + C.
Normally, it would kill the port too, but it doesn't get killed during the timeout. I would have to end the running process in task manager manually.
When the timeout happens, I would kill the running process in the terminal via Ctrl + C.
Normally, it would kill the port too, but it doesn't get killed during the timeout. I would have to end the running process in task manager manually.