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
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...