I am trying to implement a server action to create a user on appwrite in nextjs 14 but it is throwing "TypeError: e._formData.get is not a function" error , however if i do a simple console.log in the server action it is working fine. Is the error on my end or are server actions not supported yet?
Summary
The user is having an issue with implementing a server action in Next.js 14. They are getting a "TypeError: e._formData.get is not a function" error. They mention that a console.log in the server action works fine. The user is asking if server actions are supported in Next.js 14 and for assistance with their code.
Solution: It is unclear from the provided information whether server actions are supported in Next.js 14 or if there is an issue with the user's code. Further information or code details would be helpful to diagnose the problem accurately.
Guille
Dec 18, 2023, 14:33
Can you show us your code to know what are you doing? are you using the node SDK or Web SDK?
mayank.12
Rank 1: Thread
Dec 18, 2023, 16:14
this is the server action function. I am passing the email, password and name from the signup form when the submit button is clicked
mayank.12
Rank 1: Thread
Dec 18, 2023, 16:31
One thing I just noticed is that for the first time after running the website, it works correctly but after that, it throws the error. Please see the video