Questions tagged [vert.x-webclient]

36 questions
4
votes
1 answer

Non-blocking streaming of data between two Quarkus services (Vert.x with Mutiny in Java)

Update! I have fixed minor bugs in the sample code after solving some of the problems that were irrelevant to the main question which is still about non-blocking streaming between services. Background info: I'm porting a Spring WebFlux service under…
Péter Veres
  • 955
  • 1
  • 10
  • 25
3
votes
2 answers

java.lang.IllegalAccessError when using vertx web client version 4.0.0

Using vertx 4.0.0 with jdk 14. I'm getting the following exception when trying to make a REST request using the vertx web client: 15:56:48.294 [vert.x-eventloop-thread-0] ERROR io.vertx.core.impl.ContextImpl - Unhandled…
Yaniv Cohen
  • 379
  • 1
  • 7
  • 20
2
votes
1 answer

How to record each throwable when using .onFailure().retry() with delay between retries

I need to record failure reason in metrics for each failed http call when using Vert.x WebClient. This compiles: .onFailure() .retry() .withBackOff(Duration.ofMillis(INITIAL_RETRY_DELAY_MS)) …
Panu Haaramo
  • 2,932
  • 19
  • 41
2
votes
1 answer

Vert Http Client max connection pooling? Is this pool per endpoint or in total?

I am using vertx web client (3.8.5) for api-gateway and setting setMaxPoolSize to 20. Is this limit per endpoint or in total across all endpoints? I am deploying my application with 36 verticles and 1 web client per verticle, which makes 36 web…
1
vote
0 answers

VertX HTTP GraphQL request responds with 'Query is missing'

When attempting a HTTP request message to the Vert.X HTTP server endpoint, it fails with the error 'io.vertx.core.impl.NoStackTraceThrowable: Query is missing'. This happens when the Query is passed as part of the request body. The same is NOT…
1
vote
0 answers

Vertx web-client always invoking the same cluster on k8

We are using Vert.x WebClient (io.vertx.ext.web.client.WebClient). We have vert.x processes running on k8s env. The requester service which use the client always reach the same pod while we have multiple pods behind the k8s-service. I am initiating…
rayman
  • 20,786
  • 45
  • 148
  • 246
1
vote
1 answer

"static interface method invocations are not supported in -source 7" despite using 1.8

This is the complete error message: "static interface method invocations are not supported in -source 7 (use -source 8 or higher to enable static interface method invocations)" Here is the class: public class UserVerticle extends AbstractVerticle…
Ramy670
  • 51
  • 10
1
vote
0 answers

Stream response Vertx with webclient

I am using vertx 3.7.1 and using it's webclient I want to download document(/'s) from an API. I have to read the document as stream of bytes (just like the way apache http client gives the caller an inputstream using which we can read byte by byte…
user2585494
  • 483
  • 2
  • 7
  • 18
1
vote
1 answer

REST API: pass parameters to preparedQuery in Vertx pgclient

This is the response from my API: "The number of parameters to execute should be consistent with the expected number of parameters = [2] but the actual number is [0]." I use pgClient, Vert.x 3.9.3 and consume various REST API's without problems,…
1
vote
1 answer

Vertx WebClient shared vs single across multiple verticles?

I am using vert.x as an api gateway to route calls to downstream services. As of now, I am using single web client instance which is shared across multiple verticles (injected through guice) Does it make sense for each verticle to have it's own…
1
vote
1 answer

I want send a filepart image with Vertx, I want replicate this case in code like Postman

PostmanExample fun sendFileToMatch(path:String){ val client = WebClient.create(vertx); var form = MultipartForm.create() .binaryFileUpload("image","imageName" , path, "image/jpeg") client.post(8888, "localhost", "/search?") …
1
vote
2 answers

exception in vert.x worker thread

I'm very new to vert.x platform. I have a standard and a worker verticle in my project which communicates through the eventBus. The worker verticle performs multiple REST API calls in loop and database access. My problem is the worker verticle…
Vencat
  • 1,272
  • 11
  • 36
1
vote
0 answers

Vertx AddressResolverOptions setCacheMaxTimeToLive issue

I am working on setting Vertx AddressResolverOptions TTL. While testing I am seeing an issue where if the Min TTL is not set or set to lesser than Max TTL value, MaxTTL does not take effect. For testing, I alternate between the host entry with two…
Pr S
  • 11
  • 1
1
vote
1 answer

MySQLPool used in Vert.x (Kotlin)

I am currently working on a project build based on Vert.x(Kotlin) and I need to connect to MySQL server. Vert.x provides this as the solution for the MySQL connection - https://vertx.io/docs/vertx-mysql-client/kotlin I noticed that there are two…
zhianABCD
  • 223
  • 1
  • 4
  • 15
0
votes
1 answer

Capturing http response as plain text while using vert.x reverse proxy

I am trying to implement a HTTP proxy using vert.x reverse proxy to capture the incoming request and outgoing response. But for the response I am not able to capture it as a plain text whereas for the request I use interceptor that intercepts the…
siva
  • 1
1
2 3