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
- Function failing with no real explainati...
```js import {Client, ID, Messaging} from 'node-appwrite'; export default async ({req, res, log, error}) => { if (req.method !== 'GET') return res...
- Bun Runtime
Any chance we could get Bun 1.3.8 added to the runtimes? We're currently on 1.1 and the update would be awesome
- Gitlab function automation
Im trying to automate my function deployment using gitlabs ci/cd pipeline. Im currently failing trying to use the appwrite cli to create a new deployment. ```...