Andreas Resios
Andreas Resios
This is something that is fixed by #143 : https://github.com/awslabs/aws-sam-local/pull/143/files#diff-9fb85d1ee9f1b0a59804bec41e1491feR85
I'm not sure what the right behavior is, but the missing name of the pathParameter can be explained by the lack of Swagger support in the CLI.
The error signifies that SAM Local couldn't parse your response properly. Since `invoke` works, I suspect there is a problem with generating the event from the HTTP request you're sending....
I think I found the problem, namely the exec doesn't copy the output once the input is finished: https://github.com/docker/compose/blob/244834ff12c10fc4d82879bf9d7559080f3dcd75/pkg/compose/exec.go#L135 The docker cli implementation does wait for it: https://github.com/docker/cli/blob/e57b5f78de635e6e2b688686d10b830c4747c4dc/cli/command/container/hijack.go#L57 I'll try...
Actually figured out that the problem is because the random input contains the detach escape sequence which makes it abort. Looking at how the docker cli handles this, it seems...
I've added a gist which contains the flow that triggers the error: https://gist.github.com/resios/5284894