These are chat archives for fwbrasil/zoot

20th
Feb 2015
William Boxhall
@williamboxhall
Feb 20 2015 19:38
@fwbrasil i fixed the serverbuilder compilation proble
I hadn't properly updated to the latest zoot version in Build.scala after shuffling some things around
Flavio W. Brasil
@fwbrasil
Feb 20 2015 19:38
hey
cool
William Boxhall
@williamboxhall
Feb 20 2015 19:38
so it was still on the old version. oops!
William Boxhall
@williamboxhall
Feb 20 2015 19:54
Exception in thread "main" java.lang.IllegalArgumentException: requirement failed: Endpoint method 'get' should return scala.concurrent.Future.
at scala.Predef$.require(Predef.scala:233)
:(
@fwbrasil what are the chances of changing zoot to use twitters futures instead :)
Flavio W. Brasil
@fwbrasil
Feb 20 2015 19:56
@williamboxhall yeah, it is possible to change to support both
meanwhile you can use scala futures for the interface
William Boxhall
@williamboxhall
Feb 20 2015 19:57
current im gonna use the future bridge
Flavio W. Brasil
@fwbrasil
Feb 20 2015 19:57
yep
William Boxhall
@williamboxhall
Feb 20 2015 20:04
SEVERE: A server service  threw an exception
net.fwbrasil.zoot.core.response.ExceptionResponse
    at net.fwbrasil.zoot.core.endpoint.RequestConsumer$$anonfun$verifyMissingParams$3.apply(RequestConsumer.scala:45)
    at net.fwbrasil.zoot.core.endpoint.RequestConsumer$$anonfun$verifyMissingParams$3.apply(RequestConsumer.scala:44)
doh
not sure how to proceed @fwbrasil not sure exactly what the problem is
Flavio W. Brasil
@fwbrasil
Feb 20 2015 20:05
are you using the same Api trait for both client and server?
it seems that there is a missing param
William Boxhall
@williamboxhall
Feb 20 2015 20:06
I am accessing my main frontend via the trait/server def, there isn't a complementing Client
Flavio W. Brasil
@fwbrasil
Feb 20 2015 20:06
curl?
William Boxhall
@williamboxhall
Feb 20 2015 20:07
im using postman
Flavio W. Brasil
@fwbrasil
Feb 20 2015 20:07
and the method def?
William Boxhall
@williamboxhall
Feb 20 2015 20:07
trait EnrichedTracks extends Api {

  @endpoint(method = GET, path = "/enrichedtracks/:id")
  def get(trackId: Long): Future[EnrichedTrack]

}
Flavio W. Brasil
@fwbrasil
Feb 20 2015 20:08
it looks fine
are you sure this is the trait used on the server side?
maybe it is the wrong port?
William Boxhall
@williamboxhall
Feb 20 2015 20:09
ports all look correct
ahr I better go, my mate is waiting we are gonna watch a movie
ill look at this tomorrow
its all in github
its a little ugly because the make file starts processing in the background and there is no graceful way to shut them down
Flavio W. Brasil
@fwbrasil
Feb 20 2015 20:10
k
William Boxhall
@williamboxhall
Feb 20 2015 20:11
Flavio W. Brasil
@fwbrasil
Feb 20 2015 20:13
i’ll try to take a look, but my brain is totally taken by typelevel programming today :)