I created a simple REST on Kitura. When I run it on your Mac, it works fine. GET / POST / PUT / DELETE
are executed. When I run it on bluemix, GET
method works correctly, but the POST
is wrong. In response to the POST
I should return JSON
to create an object and returns a response with the text "unknown" in the body. Then, at my request any returns "unknown". No errors in the logs there. What could it be?
Kitura version 0.15.6, swift-DEVELOPMENT-SNAPSHOT-2016-05-03-a
This was a bug in the Linux implementation of SwiftyJSON that incorrectly marked UInts as invalid.
I fixed this and pushed a new version: 7.0.4
This will now work once you update your dependencies.