简体   繁体   English

使用针对Node.js的Couchbase SDK从AWS Lambda对CRUDbase进行CRUD操作

[英]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.

相关问题 从Node.js SDK向Couchbase的并行数据库请求 - parallel DB requests to Couchbase from Node.js SDK node.js SDK中Couchbase的Startkey和endKey - Couchbase's Startkey and endKey in the node.js SDK AWS Linux 上的 Couchbase node.js 客户端无法安装 - Couchbase node.js client on AWS Linux fails to install 无法使用无服务器Couchbase Lounge在AWS Lambda中加载Node JS函数-获取无效的ELF标头错误 - Not able to load Node JS function in AWS Lambda using Serverless Couchbase Lounge - getting invalid ELF header error 如何使用Node.JS将文件存储在Couchbase数据库中? - How to store files in Couchbase database using Node.JS? 从CouchBase检索HTML到Node.js / Express 4中,使其未呈现 - Retrieving HTML from CouchBase into Node.js / Express 4 leaves it unrendered 使用多个get时,node.js上的Couchbase 2.0崩溃 - Couchbase 2.0 on node.js crashes when using multiple get 使用Couchnode模块v.2.0.0从Node.js连接到CouchBase时出错 - Error Connecting to CouchBase from Node.js using Couchnode module v.2.0.0 使用Couchnode模块v.1.2.4从Node.js连接到CouchBase时出错 - Error Connecting to CouchBase from Node.js using Couchnode module v.1.2.4 带有node.js的多个插入Couchbase - Multiple insert Couchbase with node.js
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM