I followed this tutorial.
Steps:
I downloaded this github.
from where I installed the project, I executed this:
docker build -t logbert-lambda .
docker run -p 8080:8080 logbert-lambda
I opened my navigator and I typed: http://localhost:8080/2015-03-31/functions/function/invocations
It gave me this error: {"errorMessage": "Unable to unmarshal input: Expecting value: line 1 column 1 (char 0)", "errorType": "Runtime.UnmarshalError", "stackTrace": []}
Can't I use my navigator rather than Postman ?
The tutorial is clear about what HTTP method you have to use:
The endpoint functions/function/invocations
handles requests of type POST
and requires some url encoded data in the body:
If you use your browser, you are making a GET
request and, of course, posting no data.