Back

401: Unauthorized getExecution error

  • 0
  • Functions
  • Web
Rassvet
16 Oct, 2023, 13:40

401: Unauthorized user (role : guest) missing scope (execution.read)

getting the above when trying to retrieve function execution using the getExecution method.

TL;DR
User is receiving a "401: Unauthorized" error when trying to retrieve function execution using the getExecution method in Appwrite. The error message states that the user (with the role of guest) is missing the scope "execution.read".
Binyamin
16 Oct, 2023, 13:43

Have you gave permission for anyone to run the function?

Binyamin
16 Oct, 2023, 13:44
Rassvet
16 Oct, 2023, 14:40

Yes, will that be an issue?

Binyamin
16 Oct, 2023, 15:00

That's good You'll need it

Drake
19 Oct, 2023, 00:29

a user is only able to read their own execution...but if you're not logged in, Appwrite has no way of making sure the right person is reading it.

What exactly are you doing? Why not execute the function synchronously?

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