Skip to content
Back

Sam AWS CLI x Appwrite

  • 0
  • Functions
  • Web
mcjo3324
23 Sep, 2025, 13:59

Hello,

I have a problem with my functions from Appwrite.

Currently, we use AWS SAM CLI to simulate an API Gateway with Lambdas, where the client is initiated in a Lambda authorizer with the JWT.

The Lambdas retrieve this client for the database module.

However, as soon as we try to use the list documents function, we encounter the following error:

TypeScript
ERROR Error during handling: TypeError: this.client.call is not a function aws-1  
    at Databases.listDocuments (/opt/nodejs/node_modules/node-appwrite/dist/services/databases.js:1718:24) 
    at Runtime.handler (/var/task/index.js:45:39) 
    at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1306:29)


Is there a compatibility problem with AWS SAM CLI and Appwrite?

Thank you!

TL;DR
Issue with AWS SAM CLI and Appwrite integration causing an error when using list documents function in Lambdas. Ensure compatibility between both platforms.
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