You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serverless offline start executes successfully, but I'm unable to connect to the local server. I'm trying to POST to the Lambda endpoint with curl but I get no response (and no logs on the server process either).
To verify that this is not a firewall issue, I used node's http-server and was successfully able to call it with curl 127.0.0.1:8080.
Current Behavior
Running serverless offline executes successfully:
$ SLS_DEBUG=* sls offline start --migrate --verbose --stage local
Serverless: Running "serverless" installed locally (in service node_modules)
...
...
offline: Offline [http for lambda] listening on http://localhost:4002
offline: Function names exposed forlocal invocation by aws-sdk:
* collector: collectors-service-local-collector
[offline] Lambda Invocation Routes (for AWS SDK or AWS CLI):
* POST http://localhost:4002/2015-03-31/functions/myfunction/invocations
[offline] Lambda Async Invocation Routes (for AWS SDK or AWS CLI):
* POST http://localhost:4002/2014-11-13/functions/myfunction/invoke-async/
Curl waits forever:
$ curl -X POST 127.0.0.1:4002/2015-03-31/functions/myfunction/invocations
# never returns
$ curl -X POST localhost:4002/2015-03-31/functions/myfunction/invocations
# never returns
$ curl -X POST http://127.0.0.1:4002/2015-03-31/functions/myfunction/invocations
# never returns
$ curl -X POST http://localhost:4002/2015-03-31/functions/myfunction/invocations
# never returns
Connection thru Python3 boto3 doesn't work as well
Bug Report
serverless offline start
executes successfully, but I'm unable to connect to the local server. I'm trying to POST to the Lambda endpoint with curl but I get no response (and no logs on the server process either).To verify that this is not a firewall issue, I used node's
http-server
and was successfully able to call it withcurl 127.0.0.1:8080
.Current Behavior
Running serverless offline executes successfully:
Curl waits forever:
Connection thru Python3 boto3 doesn't work as well
Sample Code
Expected behavior/code
Being able to invoke functions locally.
Environment
serverless
version: 2.17.0serverless-offline
version: 6.8.0node.js
version: v15.5.1OS
: Ubuntu-18.04.05 LTS (running on Win10 19042.685 using WSL2)python
version: 3.6.9The text was updated successfully, but these errors were encountered: