Empty stage in API Gateway output for endpoints
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, javascript, python
Research direction
Reproduce the deployment using the supplied serverless.yml and compare the printed endpoint URLs with the working URLs described in the issue. Trace how the Serverless plugin formats API Gateway endpoint paths, then verify that deployed endpoints include the configured local stage and contain only one slash before the path.
Written by the indexing model from the issue text.
Description
With this serverless.yml:
service: scraperator
frameworkVersion: "3"
provider:
name: aws
runtime: python3.9
stage: local
region: us-east-1
logs:
httpApi: true
deploymentBucket:
name: serverless-deploys
serverSideEncryption: AES256
httpApi:
cors: true
disableDefaultEndpoint: false
plugins:
- serverless-python-requirements
- serverless-localstack
custom:
stage: ${opt:stage, self:provider.stage}
localstack:
stages:
- local
autostart: false
functions:
config:
handler: capture.config
events:
- httpApi:
method: GET
path: /config
capture:
handler: capture.handler
events:
- httpApi:
method: POST
path: /capture
A successful deploy yields this output:
endpoints:
GET - https://746fbc6e.execute-api.localhost.localstack.cloud:4566//config
POST - https://746fbc6e.execute-api.localhost.localstack.cloud:4566//capture
Note the // where there should be /local/.
The URL as printed does not work. However, removing a / (e.g. https://746fbc6e.execute-api.localhost.localstack.cloud:4566/config) does work.
- Dominant language
- JavaScript
- Stars
- 542
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from localstack/serverless-localstack
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
aws:apigateway status: backlog
Difficulty 4/5 3-5 days Newbie friendliness 35/100
localstack/serverless-localstack#270 · 3 reactions ·
All issues in localstack/serverless-localstack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
web-platform-tests/interop#1455 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100