Hola equipo de soporte,
Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json:
{ "name": "upload-whitelist", "type": "module", "dependencies": { "node-appwrite": "^13.0.0" }} Mi código usa:
import * as sdk from 'node-appwrite';const inputFile = sdk.InputFile.fromBuffer(buffer, fileName); pero siempre obtengo este error al ejecutar la Function:
TypeError: Cannot read properties of undefined (reading 'fromBuffer') He verificado que:
El runtime es Node.js 22. El ZIP solo contiene index.js y package.json. Todas las variables de entorno (APPWRITE_ENDPOINT, APPWRITE_PROJECT_ID, APPWRITE_API_KEY, etc.) están bien configuradas. El endpoint es https://fra.cloud.appwrite.io/v1 y el Project ID es correcto. ¿Pueden ayudarme a forzar la instalación de la versión correcta del SDK o revisar el entorno? ¿Hay alguna limitación conocida en Appwrite Cloud respecto a este método?
¡Gracias!
Recommended threads
- Problem with Google Workspace at DNS Rec...
Hello, I bought a domain at Namecheap, and Google Workspace used to work there, but now that I switched from Custom DNS to Appwrite's nameservers, it doesn't w...
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...
- Function running for more than 2 hours i...
This is my projectID: 669fe01b003800dd0503 Cloud functionID is 696ea05400147eb8eb3b I hope this doesn't count against my GB-hours?