Questions tagged [twitter-finagle]
58 questions
0
votes
1 answer
Scala 2.12 interop with java 1.8 doesn't compile for twitter finagle code
I've Java polyglot application which mainly has Java code and uses few Scala libraries as well.
The Scala below code compiles fine.
import com.twitter.finagle.{Http, Service}
import com.twitter.finagle.http.{Request, Response}
import…

user51
- 8,843
- 21
- 79
- 158
0
votes
1 answer
Finagle server dont ready after start
I have a Finagle server which apperently there´s no way to know when is rerally up.
Having this code
esbMockServer = Some(defaultServer
.serve(s"localhost:$esbPort", esbService))
println(s"Running Finagle Regular Esb Mock Server in…

paul
- 12,873
- 23
- 91
- 153
0
votes
1 answer
Finch Hello World Error: Http not a member of com.twitter.finagle
I'm trying to use the scala finch library to build an API.
I have the following simple code:
package example
import io.finch._
import com.twitter.finagle.Http
object HelloWorld extends App {
val api: Endpoint[String] = get("hello") { Ok("Hello,…

James
- 3,957
- 4
- 37
- 82
0
votes
1 answer
Can you define a dependency alias in sbt
Recently the Finagle library started depending on a custom fork of libthrift as "com.twitter" % "libthrift". The regular one is "org.apache.thrift" % "libthrift". Both contain the same classes in the same package.
While it is possible to manually…

reikje
- 2,850
- 2
- 24
- 44
0
votes
1 answer
How to specify a request parameter as Json type
I am creating a Finch endpoint which expects a Json.
URL - LogBundles/Long JSON Message/Process
I am using json4s library for Json parsing
How do I specify the body as type json Or how do I pass a Json value between LogBundles and Process?
I…

Prateek Mane
- 111
- 1
- 9
0
votes
1 answer
Override RootMonitor
I have some code running inside Future.respond, that throws an NPE, because of a bug. The problem is that my unit tests totally missed it, and are all happily passing, because the NPE is swallowed by the RootMonitor.
So, my question is if there is…

Dima
- 39,570
- 6
- 44
- 70
0
votes
1 answer
Calling a Async operation on Collection
I have a Collection of Objects. I have to call a method on this collections of objects which returns a Future. Right now I use the get() on the Future so that it make the operation Synchronous. How can I convert it to Async?
for (Summary summary :…

allthenutsandbolts
- 1,513
- 1
- 13
- 34
0
votes
0 answers
Is it possible to expose Twitter's Finatra admin pages (port 9990) on the main service port?
We are working on a service using Twitter's Finatra. The main web services are exposed in port 8080 (using override def defaultFinatraHttpPort = ":8080"). Finatra exposes Finagle's Http Admin interface automatically on port 9000. Is it possible to…

Sebastian
- 1,835
- 3
- 22
- 34
0
votes
1 answer
Finagle Send request to random server within cluster
I am using finagle as rest client. In ClientBuilder I specify a range of hosts, but the request requires setting a url with host.
How can I avoid specifying host in the request and let finagle choose one ?
Thanks.
val client =…

Alex
- 11,479
- 6
- 28
- 50
0
votes
1 answer
finagle filter add default behavior
question about filter : https://twitter.github.io/scala_school/finagle.html#Filter
For typical stack of filters + service layout, how can I add a default behavior for each of the filters? Which basically look at the request/response and do some side…

user776635
- 861
- 3
- 9
- 13
0
votes
1 answer
Twitter Finagle open too many files
I use Twitter-Finagle create a server. In each RPC function of the server, Just use a Finagle client to call another server's RPC. like this:
def rpc() = {
// finagleClient is created in a std way according to Finagle's Doc:
// val client =…

hliu
- 1,015
- 8
- 16
0
votes
1 answer
Direct ByteBuffers in Thrift with Finagle
We currently use thrift server for our RPC. One of the calls we wish to support wants to return the result of reading a file into a direct ByteBuffer. THRIFT-883 says this isn't supported (cause the ByteBuffer.array() isn't supported), so was…

ekaqu
- 2,038
- 3
- 24
- 38
0
votes
1 answer
Issue while installing twitter zipkin
I am trying to install zipkin, after following the steps given (https://github.com/twitter/zipkin/blob/master/doc/install.md), when I access http://localhost:8080/ on the web browser, instead of the zipkin UI, it gives,
*Channel Exception* at remote…

Aman Jain
- 3
- 2