I\'m working on a simple test spec using spray and I can\'t get it to compile correctly, don\'t know if I\'m doing anything wrong. My version of scala is 2.9.3 and spray 1.0
I can reproduce the precise same error message with Scala 2.10 if myRoutes
is not actually a route but a Directive[HNil]
.
I am therefore guessing that in your unshown service.MyProxy class your route does not complete.
ie
trait MyProxy extends HttpService {
val myRoutes = path("foo")
}
Gives this error
trait MyProxy extends HttpService {
val myRoutes = path("foo") {
complete(StatusCodes.Accepted)
}
}
Does not.