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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...