CodeGenieApp / CodeGenieApp/serverless-express
'Unable to determine event source based on event.' Lambda to Lambda Invoke
- 主要言語
- JavaScript
- スター
- 5.3k
- フォーク
- 676
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hello,
I am trying to catch event parameters from Lambda A which invokes Lambda B with event parameter.
I was trying to use getCurrentInvoke() at the global level to catch it, but unfortunately it was futile.
How can I catch event parameter passed when invoked by another Lambda?
The Lambda b is for my slack app that I deployed onto Lambda.
at the end of the file it has this exports.handler
```javascript
module.exports.handler = serverlessExpress({
app: receiver.app,
});
```
I believe this is the place where I need to grab the event parameter. So far, what I've done is this :
```javascript
exports.handler = async (event, context) => {
console.log(event, context);
return serverlessExpress({
app: receiver.app,
});
};
-----------
module.exports.handler = async (event, context) => {
console.log(event, context);
return serverlessExpress({
app: receiver.app,
});
};
```
none worked out for me :(
I am very new to this serverless and backend logic stuff so please shed some knowledge! I greatly appreaciate!
コントリビューションガイド
調査の方向性
The relevant entry point is the exported handler using serverlessExpress({ app: receiver.app }); start by tracing the Lambda-to-Lambda invocation and the handler signature shown in the issue. Done means identifying where the invoked event is available and documenting or reproducing the expected behavior, but no target code change is specified.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, express, javascript, node.js
- 領域
- backend, cloud
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100