計画書サンプルコードの$input.first()バグを修正(Task11再構築で発見)
署名検証Codeノードの直前がWebhookでなくData Table(設定値一括取得)
になったため、裸のinput.first()だとconfig行を拾ってしまい常に
署名検証失敗になるバグだった。$('Webhook').first()に修正。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
83d568a493
commit
530607203a
@ -1126,7 +1126,7 @@ function verifySignature(rawBody, headerSignature, botSecret) {
|
||||
const configRows = $('設定値一括取得').all().map((item) => item.json);
|
||||
const config = Object.fromEntries(configRows.map((row) => [row.configKey, row.configValue]));
|
||||
|
||||
const item = $input.first();
|
||||
const item = $('Webhook').first(); // この直前ノードは「設定値一括取得」(Data Table)のため、裸の$input.first()だとconfig行を拾ってしまいheaders/bodyが無い
|
||||
const headers = item.json.headers || {};
|
||||
const rawBody = item.binary && item.binary.data
|
||||
? Buffer.from(item.binary.data.data, "base64")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user