Skip to content
Sites Hackathon is live / Aug 29 - Sep 12
Back

[SOLVED]Error User( role: guests) missing scope (functions.read)

  • 0
  • Functions
🍜Udon🍜
6 Oct, 2023, 01:41

Can't create or deploy functions. Not sure what I'm doing wrong. Haven't been able to use functions since I updated

TL;DR
User is experiencing an error "User(role: guests) missing scope (functions.read)". They initially couldn't find the documentation, but realized they forgot to login to the appwrite which solved the issue. They use appwrite CLI and tried to init and deploy, but kept getting the same error. They mentioned using Dart for their functions and also noticed they put "api.mywebsite.com" for the functions URL in the .env file. The solution is to make sure to login to appwrite and ensure correct API URL in the .env file.
Drake
6 Oct, 2023, 01:43

What are you doing?

🍜Udon🍜
6 Oct, 2023, 01:44

I put api.mywebsite.com for the functions url in the .env file not sure if that's correct

🍜Udon🍜
6 Oct, 2023, 01:45

Should it be just my website?

Drake
6 Oct, 2023, 01:45

So after you do that, when you create a new function, a subdomain will be created for that function

🍜Udon🍜
6 Oct, 2023, 01:46

I might need to make sure my firewall is letting the ports through too

Drake
6 Oct, 2023, 01:46

I don't know what you're trying to do

🍜Udon🍜
6 Oct, 2023, 01:46

I'm just just trying to create any function

🍜Udon🍜
6 Oct, 2023, 01:46

I use appwrite cli

🍜Udon🍜
6 Oct, 2023, 01:47

My functions are in dart

🍜Udon🍜
6 Oct, 2023, 01:48

Init and deploy give me Error User( role: guests) missing scope (functions.read)

Drake
6 Oct, 2023, 01:48

Did you login after installing the CLI?

🍜Udon🍜
6 Oct, 2023, 01:49

I think it's my fault

🍜Udon🍜
6 Oct, 2023, 01:49

That might be the problem. I couldn't find the documentation.i know it's out there

Drake
6 Oct, 2023, 01:50

Where did you look and what did you do to try and find docs?

🍜Udon🍜
6 Oct, 2023, 02:08

Just on google

🍜Udon🍜
6 Oct, 2023, 02:08

Good try to login now

🍜Udon🍜
6 Oct, 2023, 02:08

Gonna

🍜Udon🍜
6 Oct, 2023, 02:10

Wow sorry for wasting your time again. I forgot to login it works again. All I needed was appwrite login

🍜Udon🍜
6 Oct, 2023, 02:10

[SOLVED]Error User( role: guests) missing scope (functions.read)

Drake
6 Oct, 2023, 02:18

Best thing to do is to look at our docs

🍜Udon🍜
6 Oct, 2023, 02:23

They've helped alot πŸ’―

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