Closed m1ci closed 9 years ago
Hi Milan, I also tried it and it failed. But I saw that the body contents was "pipeline1.json". So then I added @
before the filename in the command (as explained in the curl man page):
curl -v -d @pipeline1.json -X POST -H "Content-Type: application/json" "http://localhost:8080/pipelining/chain"
This works (here). Can you try this and see if it works, and if so, close this issue? Thanks!
oh, you are right, I've missed the @ sign. Thanks for the catch!
This reminds me that I have to return a proper error message if there is something wrong with the JSON though. Will look into that.
A somewhat better error message returns now.
I get error:
Error stack trace:
The cURL command:
with body (pipeline1.json):