i am trying to write the first cloud functions in python or js. what is the easiest way and how can i test this locally? unfortunately i can't find anything on the appwrite page
And how can i upload the python main.py in the appwrite folder?
Traceback (most recent call last): File "C:\Users\Michael\AppData\Roaming\JetBrains\IntelliJIdea2023.1\plugins\python\helpers\pydev\pydevd.py", line 1496, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "C:\Users\Michael\AppData\Roaming\JetBrains\IntelliJIdea2023.1\plugins\python\helpers\pydevpydev_impspydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:\Users\Michael\IdeaProjects\brawl_stars\appwrite-functions\deploy_function.py", line 15, in <module> result = functions.create_deployment('6563f3a89b7ebefcb300', 'main.py', InputFile.from_path('fetch-data/main.py'), True) File "C:\Users\Michael\AppData\Local\Programs\Python\Python310\lib\site-packages\appwrite\services\functions.py", line 186, in create_deployment return self.client.chunked_upload(api_path, { File "C:\Users\Michael\AppData\Local\Programs\Python\Python310\lib\site-packages\appwrite\client.py", line 129, in chunked_upload if input_file.source_type == 'path': AttributeError: 'str' object has no attribute 'source_type'
I use the Appwrite CLI and deploy to a local/dev instance of Appwrite
ok that sounds nice. but this url iwr -useb https://appwrite.io/cli/install.ps1 is invalid
Ya, installing that way doesn't quite work at the moment. I suggest installing using NPM
when i install it over npm it will work in the powershell? ^^
I believe so
Recommended threads
- Appwrite SSL Certificate Failure
Hello, I need help releasing a stuck domain. My Domain: adilnaib.engineer My Project ID: 68fe0aee001e999b5d71 Error: Failed to add domain to Fastly: {"msg":"B...
- [BUG] I'm facing an issue while creating...
Here’s what’s happening: When I try to create a new Web app on my Appwrite console (backend.keplr.in), the browser console shows multiple errors: Uncaught (in...
- Sites: Old deployment gets requests even...
Hi team, I use Sites to host a Next.js web app and it serves from old deployment for many hours. Is this expected? I thought it would serve from new deployment ...