This is a companion discussion topic for the original entry at https://www.raywenderlich.com/870225-server-side-swift-with-vapor/lessons/4
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/870225-server-side-swift-with-vapor/lessons/4
When I try the router.post(“info”) route in Postman I get the following response:
{
“error”: true,
“reason”: “Cannot use sync decode on a streaming body.”
}
Xcode will suggest to use decode instead of syncDecode but when I do that Xcode throws an error message: “Value of type ‘EventLoopFuture’ has no member ‘name’
Xcode version: 10.2.1
@0xtim Can you please help with this when you get a chance? Thank you - much appreciated! :]
1 Like
@makaha how are you sending the data in Postman? It usually means that you haven’t sent all the data, but that’s unusual with a client request.
With decode
you’ll need to resolve the returned future