CodeGenieApp / CodeGenieApp/serverless-express

requests to /foo/bar to an API Gateway (v1) resource of /foo/{proxy+} return 404 as they are routed to /bar

オープン
#648 コメント 9 件 リアクション 4 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
5.3k
フォーク
676
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm having the same issue as in this comment https://github.com/vendia/serverless-express/issues/454#issuecomment-1322898350 (should be probably reopened?)

Upgraded from the legacy `aws-serverless-express` and for some reason it takes the path from `pathParameters.proxy` (which is `bar`) and not the request.path (which is `/foo/bar`)

I'll be happy to work on a PR if you indeed confirm it's a bug

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reproducing an API Gateway v1 request to the /foo/{proxy+} resource and compare pathParameters.proxy with request.path. Trace how the request path is selected after upgrading from aws-serverless-express, using the linked issue comment as context. Done means /foo/bar reaches the Express application as /foo/bar rather than /bar, with a regression test covering the behavior.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, express, javascript, node.js
領域
api, backend, cloud
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。