Skip to content
Back

Error

  • 0
  • Functions
  • Messaging
  • Cloud
<khaltech/>
3 Jul, 2025, 12:19

I'm trying to get sellerId using account.get() in my appwrite function and this is the error message I'm getting:

"Failed to send notification to seller 6865bfd200091084268a: &#97;&#x70;&#112;&#x2e;&#54;&#56;&#x35;&#57;&#x66;&#x30;&#48;&#x39;&#x30;&#x30;&#x30;&#101;&#x39;&#x64;&#x63;&#56;&#x34;&#53;&#97;&#52;&#x40;&#x73;&#x65;&#x72;&#118;&#x69;&#x63;&#x65;&#x2e;&#x63;&#108;&#x6f;&#117;&#x64;&#x2e;&#x61;&#112;&#x70;&#x77;&#x72;&#105;&#x74;&#x65;&#x2e;&#105;&#x6f; (role: applications) missing scope (account) "

this is the code I try to run the function :

const seller = await account.get(sellerId);

the screenshot of m appwrite console is attached. Thank you @Kenny @Aditya Oberai @Steven

TL;DR
Error message is suggesting to use users.get instead of account.get to get sellerId. This is because 'account' does not have necessary scope for the operation. Use users.get(sellerId) instead.
Kenny
3 Jul, 2025, 12:20
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