{"errorMessage": "Unable to unmarshal input: Expecting value: line 1 column 1 (char 0)", "errorType": "Runtime.UnmarshalError", "stackTrace": []}
{"errorMessage": "Unable to unmarshal input: Expecting value: line 1 column 1 (char 0)", "errorType": "Runtime.UnmarshalError", "stackTrace": []}
我关注了this tutorial。
步骤:
我下载了this github。
从我安装项目的地方,我执行了这个:
docker build -t logbert-lambda .
docker run -p 8080:8080 logbert-lambda
我打开导航器并输入:http://localhost:8080/2015-03-31/functions/function/invocations
它给了我这个错误:{"errorMessage": "Unable to unmarshal input: Expecting value: line 1 column 1 (char 0)", "errorType": "Runtime.UnmarshalError", "stackTrace": []}
我不能使用我的导航器而不是 Postman 吗?
该教程清楚地说明了您必须使用的 HTTP 方法:
端点 functions/function/invocations
处理类型 POST
的请求并需要一些 url 正文中的编码数据:
如果您使用浏览器,则您正在发出 GET
请求,当然不会发布任何数据。
忠告:当你学习教程时,你应该遵循教程。
我关注了this tutorial。
步骤:
我下载了this github。
从我安装项目的地方,我执行了这个:
docker build -t logbert-lambda .
docker run -p 8080:8080 logbert-lambda
我打开导航器并输入:http://localhost:8080/2015-03-31/functions/function/invocations
它给了我这个错误:{"errorMessage": "Unable to unmarshal input: Expecting value: line 1 column 1 (char 0)", "errorType": "Runtime.UnmarshalError", "stackTrace": []}
我不能使用我的导航器而不是 Postman 吗?
该教程清楚地说明了您必须使用的 HTTP 方法:
端点 functions/function/invocations
处理类型 POST
的请求并需要一些 url 正文中的编码数据:
如果您使用浏览器,则您正在发出 GET
请求,当然不会发布任何数据。
忠告:当你学习教程时,你应该遵循教程。