[英]CRUD operations to couchbase from AWS Lambda using couchbase sdk for node.js
I need to run CRUD operations on my bucket (database) in couchbase which is deployed ec2 instance. 我需要在已部署ec2实例的bedfa的存储桶(数据库)上运行CRUD操作。 And the code which I have is running on aws lambda. 我拥有的代码正在AWS Lambda上运行。 However, when I try to test this code on lambda by passing details in the body I get the error as : "errorMessage": "/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /var/task/node_modules/couchbase/build/Release/couchbase_impl.node)" . 但是,当我尝试通过在正文中传递详细信息来在lambda上测试此代码时,得到的错误为: “ errorMessage”:“ /usr/lib64/libstdc++.so.6:未找到版本`GLIBCXX_3.4.20'(由/var/task/node_modules/couchbase/build/Release/couchbase_impl.node)” 。 This error is because in my function I require an npm module called "couchbase" which is used for executing CRUD operations on my couchbase bucket. 发生此错误是因为在我的函数中,我需要一个名为“ couchbase”的npm模块,该模块用于在我的couchbase存储桶上执行CRUD操作。
So can you guys help me as to what might be the problem here? 你们可以帮我解决这里可能出现的问题吗? Is the file missing on nodejs environment running on lambda or do I need to implement in a different way so as to get it working? 是在lambda上运行的nodejs环境上缺少该文件,还是需要以其他方式实现才能使其正常工作?
Thanks in advance. 提前致谢。
我可以通过使用lambda使用的相同nodejs版本(v0.10.36)在本地编译node_modules并将zip文件上传到lambda来解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.