mcjo3324Original post
Rank 2: Process
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:
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!
Summary
Issue with AWS SAM CLI and Appwrite integration causing an error when using list documents function in Lambdas. Ensure compatibility between both platforms.