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
- No permissions provided for action 'read...
I have a very weird error; In a function I'm using dynamic keys to perform read write operation in rows. I have the scopes for read and write rows. The funct...
- Repository directory size should be less...
Whenever I create a function i get the error above. Is there a way to get around this? How do I fix this?
- "Waiting" executions
For my React Native App, I have had no issues deploying a function in Appwrite & the executions either working or failing. Now I am getting status code - 0 & j...