You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
not enough arguments for method cookieSession: (magnet: com.abcd.rest.session.WithStatefulManagerMagnet[Unit,Int])spray.routing.Directive[shapeless.::[String,shapeless.::[Map[String,Int],shapeless.HNil]]]
when trying to integrate spray session with my code. It seems that it's because my code is lack of some implicit parameter so the compiler is unable to find the suitable conversation. I am pretty new to Scala and spray (magnet directive pattern). Can you take a look and suggest where I made the mistake.
Here is the code what I am using:
traitBootedCoreextendsHttpServicewithHttpsDirectiveswithSettingsProviderwithPageDirectiveswithStatefulSessionManagerDirectives[Int]{
implicitvalsystem=ActorSystem("user-services")
....
implicitdefactorRefFactory:ActorRefFactory= system
implicitvaltimeout=newTimeout(Duration(2, SECONDS))
implicitvalmanager=newRedisSessionManager[Int](ConfigFactory.load())
//merge both routes together + enforce https if neededvalroutes= {
cookieSession() { (id, map) =>
decompressCompressIfRequested {
enforceHttpsIf(settings.Http.EnforceHttps) {
apiRoutes ~ websiteRoutes
}
}
}
}
....
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I keep getting the error:
not enough arguments for method cookieSession: (magnet: com.abcd.rest.session.WithStatefulManagerMagnet[Unit,Int])spray.routing.Directive[shapeless.::[String,shapeless.::[Map[String,Int],shapeless.HNil]]]
when trying to integrate spray session with my code. It seems that it's because my code is lack of some implicit parameter so the compiler is unable to find the suitable conversation. I am pretty new to Scala and spray (magnet directive pattern). Can you take a look and suggest where I made the mistake.
Here is the code what I am using:
Thanks.
The text was updated successfully, but these errors were encountered: