Hello everyone, I'm getting this problem when deploying a function via Power Shell: EPERM: operation not permitted, scandir 'AppData\Local\Application Data'
Tried to run as admin, but it didn't work.
uhh where are you running the command? and what are you running?
In my windows power shell. This is the command:
appwrite functions createDeployment
--functionId=6012cc93d5a7b
--activate=true
--entrypoint="index.py"
--code="."
Docker is running to make the local server available for testing.
Can you execute pwd?
Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting
I highly recommend using appwrite init function to initialize your function and appwrite deploy function to deploy
Thanks a lot for your solution. I will try it out and hope it works.
This solution worked, but how can I write the body of the function this way?
Init creates the function code. You can modify it as you'd like and then run appwrite deploy function to deploy again
Recommended threads
- Excessive usage of cloud functions is sl...
I have made almost all my requests through cloud functions and jwt , due to security fears of a user editing a field he is not supposed to . This unfortunately...
- Dart Runtime as Function is missing
Hey guys, I set the _APP_FUNCTIONS_RUNTIMES to dart-3.10 and redeployed the appwrite stack but unfortunately the dart runtime doesnt show up. I copied the val...
- Go 1.25 runtime
So I'm trying to use go 1.25 for my functions and I can only find go-1.23 as a function runtime. So I did some searching and found https://github.com/appwrite/a...