相关疑难解决方法(0)

亚马逊Lambda到Firebase

当我尝试在Lambda中运行它时,我得到'找不到模块'firebase'(Node.js 4.3)

var Firebase = require('firebase');
Run Code Online (Sandbox Code Playgroud)

当我尝试上传包含node_modules/firebase的压缩包时,会发生同样的事情

有没有人有一个"从lambda写到firebase"的工作?

lambda amazon firebase

16
推荐指数
3
解决办法
1万
查看次数

AWS Lambda中的Python请求超时

我正在尝试从我的AWS Lambda发出http请求,但它超时了.

我的代码看起来与此类似:

import requests

def lambda_handler(event, context):
    print('Im making the request')
    request.get('http://www.google.com')
    print('I recieved the response')
Run Code Online (Sandbox Code Playgroud)

但是当我测试这个时,我会超时.

输出是

Im making the request
END RequestId: id
REPORT RequestId: id    Duration: 15003.25 ms   Billed Duration: 15000 ms   Memory Size: 128 MB Max Memory Used: 18 MB  
2016-04-08T20:33:49.951Z id Task timed out after 15.00 seconds
Run Code Online (Sandbox Code Playgroud)

所以我知道问题不是找不到请求包,而是运行我的python代码.我只想弄清楚为什么它会超时.

python amazon-web-services aws-lambda

8
推荐指数
4
解决办法
1万
查看次数