Open
Description
Describe the bug
I try to call a simple endpoint, which I can do easily in another library and using curl
, but with finagle http I get:
Exception in thread "main" Failure(null at remote address: REDACTED/REDACTED:443. Remote Info: Not Available, flags=0x08) with RemoteInfo -> Upstream Address: Not Available, Upstream id: Not Available, Downstream Address: REDACTED/REDACTED:443, Downstream label: REDACTED:443, Trace Id: 4c9d19804cb9d6f7.83e43b9c049014cd<:e043d2f9c8705e82 with Service -> REDACTED:443
Caused by: com.twitter.finagle.ConnectionFailedException: null at remote address: REDACTED/REDACTED:443. Remote Info: Not Available
at com.twitter.finagle.netty4.ConnectionBuilder$$anon$1.operationComplete(ConnectionBuilder.scala:105)
at com.twitter.finagle.netty4.ConnectionBuilder$$anon$1.operationComplete(ConnectionBuilder.scala:84)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:590)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:557)
...
As stated I know the server is available because I can hit it using other libraries, or curl
.
To Reproduce
private val client: Service[Request, Response] =
Http.client.withTls(s"$host").newService(s"$host:443")
// Http.client.newService(s"$host:443") not work either
Future
.apply(logger.log(s"Calling URI: $fullUri"))
.flatMap(_ =>
client.apply(
RequestBuilder()
.url(fullUri)
.addHeader(Fields.Authorization, s"Basic ${basicAuth.key}")
.buildGet(),
),
)
Expected behavior
It behaves like any other library or curl
, i.e. hits the endpoint and returns a response.
Also I don't understand why we need to specify the host 3 times (twice to create the service, once in the URI)
Metadata
Metadata
Assignees
Labels
No labels