【发布时间】:2020-01-30 14:28:20
【问题描述】:
Serverless invoke local -f function_name -m POST
此命令不适用于 azure 本地。一切都适用于 AWS,但不适用于 Azure。
我可以通过使用无服务器在 azure 上完美部署这些功能,但无法在本地调用。
这是此调用的响应:
Serverless: URL for invocation: http://localhost:7071/api/project
Serverless: Invoking function createProject with POST request
Error --------------------------------------------------
Error: connect ECONNREFUSED 127.0.0.1:7071
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: win32
Node Version: 10.16.3
Framework Version: 1.53.0
Plugin Version: 3.1.0
SDK Version: 2.1.1
Components Core Version: 1.1.1
Components CLI Version: 1.2.3
【问题讨论】:
标签: azure serverless-framework serverless