Back

Next JS 14 Error: TypeError: e._formData.get is not a function using Appwrite Backend

  • 1
  • Self Hosted
  • Accounts
  • Web
  • Cloud
Jorgelig
4 Dec, 2023, 05:25

Errors in the Console with the Second Submit:

⨯ TypeError: e._formData.get is not a function at AsyncLocalStorage.run (node:async_hooks:330:14) at AsyncLocalStorage.run (node:async_hooks:330:14) at AsyncLocalStorage.run (node:async_hooks:330:14)

Error on Page with the Second Submit: Unhandled Runtime Error Error: e._formData.get is not a function

Call Stack tn file:///D:/projects/jorgelig-labs/wapp-conecta/wapp-conecta-app/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (35:301625) t.decodeReplyFromBusboy file:///D:/projects/jorgelig-labs/wapp-conecta/wapp-conecta-app/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js (35:306021) <unknown>

TL;DR
User is experiencing an error in Next.js 14 related to an Appwrite backend. The error message is "TypeError: e._formData.get is not a function." Another user confirms the same issue and suggests commenting out the Appwrite code to see if the error persists. It is mentioned that the error is easily reproducible and a request is made for someone to investigate and fix the issue. Solution: Currently, no solution is provided in the support thread.
Jorgelig
4 Dec, 2023, 05:25
Drake
4 Dec, 2023, 07:10

Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting

Drake
4 Dec, 2023, 07:16

So if you commented out the Appwrite line and console log, it works?

telemetry
8 Dec, 2023, 10:54

I can confirm that appwrite is causing this error .. I have been trying to get the Appwrite to work with next.js server actions for a while now. It's disappointing.. This bug is easily reproducible, can someone look into this? It would be nice to get it working...

telemetry
8 Dec, 2023, 10:55

yes if you comment out appwrite stuff it works.. nothing to do with formdata extraction

Drake
8 Dec, 2023, 10:59
Drake
8 Dec, 2023, 11:08

Also, what's the code for client sign up?

Drake
8 Dec, 2023, 11:09

Where do those logs (accessed at, prefs, etc.) come from?

telemetry
8 Dec, 2023, 11:13

different issue I think

telemetry
8 Dec, 2023, 11:20

his code is probably dead right here __const result = await client.signUp(email, password, name); __ and I'm certain that he's calling account.create() via appwrite sdk.. The first call will go through .. the 2nd time you will get the infamous e._formData.get is not a function... the funny thing is.. this error message is so confusing and misleading..

Drake
8 Dec, 2023, 11:22

Oh wait...you're not the original poster...would you please create a separate issue with your info please?

telemetry
8 Dec, 2023, 11:22

im not

telemetry
8 Dec, 2023, 11:22

but i have exactly the same problem

telemetry
8 Dec, 2023, 11:23

i have this problem half a year ago.. and i didn't report it

telemetry
8 Dec, 2023, 11:23

with next.js 13.4

telemetry
8 Dec, 2023, 11:23

now next.js 14.. still same problem unresolved

telemetry
8 Dec, 2023, 11:27

I'm writing coding a another commercial next.js appwrite project hoping to use server action .. but seems like it's still not working

telemetry
8 Dec, 2023, 11:28

can I just use this space... i dont wanna write another post.. the errors are the same

Drake
8 Dec, 2023, 11:28

No please. It's best to keep a thread focused on one problem for one user. Otherwise, we may end up trying to debug multiple people's code in a single thread which can get confusing

telemetry
8 Dec, 2023, 11:30

im not posting my code..

telemetry
8 Dec, 2023, 11:30

i just used his

telemetry
8 Dec, 2023, 11:31

ok.. but if it will help you get to the bottom of this i will

telemetry
8 Dec, 2023, 11:31

i guess not many people using appwrite for next.js?

telemetry
8 Dec, 2023, 11:33

once you use server action with appwrite you will instantly get this weird error....

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more