Skip to content

Commit

Permalink
fix : AWS_EVENTBRIDGE 404
Browse files Browse the repository at this point in the history
  • Loading branch information
imdkbj authored Dec 28, 2022
1 parent 75cfbff commit 2d73635
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ async function forwardRequestToNodeServer ({
if (!requestValues.path && eventSourceRoutes[eventSourceName]) {
requestValues.path = eventSourceRoutes[eventSourceName]
}
// Handle Event like as AWS_EVENTBRIDGE (Lambda getting closed with 404)
requestValues.path= requestValues.path || '*'

Check failure on line 155 in src/transport.js

View workflow job for this annotation

GitHub Actions / test-lint-audit (20.x)

Operator '=' must be spaced

Check failure on line 155 in src/transport.js

View workflow job for this annotation

GitHub Actions / test-lint-audit (20.x)

Multiple spaces found before '||'

log.debug('SERVERLESS_EXPRESS:FORWARD_REQUEST_TO_NODE_SERVER:REQUEST_VALUES', { requestValues })
const { request, response } = await getRequestResponse(requestValues)
Expand Down

0 comments on commit 2d73635

Please sign in to comment.