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
However when I move the route to a function designed to replicate the route in its & other places, I get an IDE error saying Cannot resolve overloaded method 'complete'. I also get compiler error saying
found : Seq[String]
[error] required: akka.http.scaladsl.marshalling.ToResponseMarshallable
I'm not really sure what else to provide here... originally I was inside other Routes inside a trait which extends ErrorAccumulatingCirceSupport with StrictLogging. Now I am in a simple object. But I don't think expect of those things would have anything to do with this... the function that turns the GeneratedMessage into String is passed in now as a parameter to a def in the object I created, but all it does is call a custom helper function on GeneratedMessage that I wasn't able to call inside my def due to type erasure...
where completeFunc is a paramater passed in as {data => data.customPrint} and handlerFunc is also a parameter passed in as handler.func.
Essentially I built the function in the file it was originally in and the copy-pasted to a common object that I can use in other places. It was working fine within the original file. Now, it doesn't seem to want to transform my Seq[String] to toResponseMarshallable.
The text was updated successfully, but these errors were encountered:
Not sure what is the problem here but sounds like it could be more of a question than an actual bug or feature request, so please run it through the forums at https://discuss.akka.io and see if someone can help your. If it turns out to be an actual bug we'll re-open this issue.
I have a route that successfully uses
complete
afteronSuccess
to transform aSeq[GeneratedMessage]
toSeq[String]
.However when I move the route to a function designed to replicate the route in its & other places, I get an IDE error saying
Cannot resolve overloaded method 'complete'
. I also get compiler error sayingI'm not really sure what else to provide here... originally I was inside other
Route
s inside atrait
whichextends ErrorAccumulatingCirceSupport with StrictLogging
. Now I am in a simpleobject
. But I don't think expect of those things would have anything to do with this... the function that turns theGeneratedMessage
intoString
is passed in now as a parameter to adef
in theobject
I created, but all it does is call a custom helper function onGeneratedMessage
that I wasn't able to call inside mydef
due to type erasure...where
completeFunc
is a paramater passed in as{data => data.customPrint}
andhandlerFunc
is also a parameter passed in ashandler.func
.Essentially I built the function in the file it was originally in and the copy-pasted to a common
object
that I can use in other places. It was working fine within the original file. Now, it doesn't seem to want to transform mySeq[String]
totoResponseMarshallable
.The text was updated successfully, but these errors were encountered: