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
- Vorherrschende Sprache
- JavaScript
- Sterne
- 5.3k
- Forks
- 676
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, express, javascript, node.js
- Bereich
- api, backend, cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100