Back

Error 401 I have Auth but can't write to DB

  • 2
  • Web
  • Cloud
00I
17 Apr, 2024, 22:47

Not sure what I have wrong here, Wondering if I can get help from someone having the solved this.

TL;DR
Error 401 due to calling `account.get()` without a logged-in user. Solution: Make sure user is logged in before writing to DB.
00I
17 Apr, 2024, 22:51
ideclon
18 Apr, 2024, 06:54

This error means you’re calling account.get() when there’s no logged in user.

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