Skip to content
Back

Hola equipo de soporte,

  • 0
  • Flutter
  • Web
  • Storage
  • Cloud
  • Functions
damp
16 Sep, 2025, 14:43

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!

TL;DR
Developers having issues with Node.js function in Appwrite Cloud, experiencing error with 'fromBuffer'. Ensure correct SDK version installed and environment variables set up properly. Provide endpoint is correct and check for any known limitations in Appwrite Cloud.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more