Skip to content
Back

await cookies() error

  • 0
  • Web
Ries
4 Nov, 2024, 10:35

A few Minutes ago my colleague and I got the same cookies() error. Strangely there wasn`t any commit from our side our anyone else.

First error: Error: Route "/" used cookies().get('appwrite-session'). cookies() should be awaited before using its value.

=> this error that comes from next, should`t be there because be already await cookies()

Second error: SyntaxError: "undefined" is not valid JSON

=> Same here

Is there any Problem with the Appwrite Servers, since we both didn`t commit anything the error is possibly related to the servers. Did anybody had this error before during a project and can propose a solution?

TL;DR
Developers encountered 'await cookies() error' in their project without making any commits. They faced errors related to using `cookies()` without awaiting it and a SyntaxError for undefined JSON. They suspect the issue might be with Appwrite servers. They are seeking advice or solutions from others who faced similar errors.
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