fails when request content type is application/json but the body is empty