Is it possible to use {proxy+} in my route for template-based API Gateway debugging?
See original GitHub issueDesktop (please complete the following information):
- OS: Windows 10
- VS Code version: 1.63.2
- AWS Toolkit extension version: 1.35.0
Question
I have an SAM template setup such that my API Gateway has a single route that consists only of /{proxy+} and with it I’m using Express JS. In the documentation, it states that the api.path value…
Must be a valid API path resolved from the
template.yamlspecified byinvokeTarget.templatePath.
I tried setting up api.path in the launch.json configuration with both a valid route and with /{proxy+} (which I knew wouldn’t work, but hey), but I get the follow error in either case:
[ERROR]: Local API failed to respond (ECONNREFUSED) after 30 retries, path: /{proxy+}, error: connect ECONNREFUSED 127.0.0.1:5860
Is it possible to use AWS Toolkit debugging with this setup?
Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Set up a proxy integration with a proxy resource - Amazon API ...
The Lambda proxy integration, designated by AWS_PROXY in the API Gateway REST API, is for integrating a method request with a Lambda function...
Read more >Chapter 12. Troubleshooting the API infrastructure
Check that there are no firewalls or proxies between the API Gateway and the public ... Use the 3scale debug header to double-check...
Read more >Proxmox Mail Gateway Administration Guide
Configure Proxmox Mail Gateway to forward the incoming SMTP traffic to your mail server (Configuration/Mail Proxy/Default Relay) - Default Relay is your ......
Read more >Amazon API Gateway: Explaining HTTP Proxy in HTTP API
HTTP_PROXY : The HTTP proxy integration allows a client to access the backend HTTP endpoints with a streamlined integration setup on single API...
Read more >Test patterns for discovering AWS API Gateway and AWS ...
Run the horizontal and top-down discovery using Amazon AWS API Gateway [cmdb_ci_cloud_gateway] and Amazon AWS Lambda ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@JadenSimon,
Sorry. I forgot to provide the
launch.jsonconfiguration, which I created using theAWS: SAM Debug Configuration Editorin VSCode, which is pretty neat. Didn’t know that existed. Anyway, here’s my configuration.That’s definitely a pain-point. Right now the toolkits have an ‘escape-hatch’ in the launch configurations via
localArguments(orbuildArgumentsfor building) that forwards arguments to SAM CLI:But this specific example would break debugging
sam local start-apias the toolkit expects the ports to be in a certain way. And I’m sure there’s plenty of things SAM CLI supports that just wouldn’t work nicely with the toolkit. Definitely appreciate the feedback though, very helpful!You’re welcome! You as well. I’m closing out this issue and opening a new one to track API debugging improvements which I’ll link back here.