Questions tagged [vertx-httpclient]
100 questions
0
votes
1 answer
Vertx Web Client throwing HTTP 415 Unsupported Media Type for Multipart/form-data
This service receives the multipart request from mobile client and passes on the request to downstream service for uploading the image. I am seeing 415 Unsupported Media Type in my downstream service
private void makeRequest(HttpRequest…

Nitish Goyal
- 97
- 10
0
votes
0 answers
java.lang.IllegalAccessError: when accessing GraphQL API from vertx
I have a graphlQL client in Hasura (running on docker instance), which I want to access from vertex.
Following is my code:
public class MyFirstVerticle extends AbstractVerticle {
@Override
public void start(Future fut) {
…

oOXAam
- 237
- 1
- 6
- 20
0
votes
1 answer
what is the use case of vertx multi verticle in single microservice?
In most of the web the applications built in the vertx, I have seen that in a single microservice people create two verticles.
One is rest verticle to handle HTTP requests.
Another is to dao verticle to communicate to the database.
Whenever there…

Deepak Chougule
- 51
- 1
- 8
0
votes
1 answer
The grammar in Vertx HttpServerRequest
I am quite new in Java, and I am learning Vertx recently, I can't understand how the following code works:
@Override
public void start() {
vertx.createHttpServer()
.requestHandler(req -> req.response()
.end("hello"))
…

Skydidi
- 21
- 2
0
votes
2 answers
Http Post for WebClient
I am trying to test my Post endpoint using WebClient of Vertx and always get 500 as a status code.
Can anyone please let me know what am I doing wrong here:-
final String jsonBody = "{\"url\": \"https://www.google.se\"}";
…

shivam oberoi
- 237
- 4
- 8
0
votes
1 answer
Unit test vertx response handlers if there are objects within the handler to mock
Example response handler:
private static void handleGetRequest(RoutingContext ctx) {
final HttpServerResponse response = ctx.response;
try {
A a = B.getSomeA();
a.handleSomething();
}
catch (Exception ex)…

Rachita
- 1
0
votes
2 answers
Reactive streams publisher from Vertx webclient response body
I'm trying to write a wrapper for the Vert.x web-client to load response body from server using Publisher from reactivestreams:
import org.reactivestreams.Publisher;
import io.vertx.reactivex.ext.web.client.WebClient;
interface Storage {
…

Kirill
- 7,580
- 6
- 44
- 95
0
votes
1 answer
Significance of time units for different http client timeouts in java
I was wondering what's the significance of different units of time used while specifying http client timeouts. Connection Timeout is in milliseconds, idle timeout in seconds, and read-timeout in milliseconds.
Does vertx use different precisions to…

MasterOfNone
- 1
- 1
0
votes
1 answer
Vert.x response has already been written
I am facing a problem with vert.x.
When the timeout is triggered it generates a response, then the actual response (takes 10 sec) comes and tries to do the response, so I get a:
java.lang.IllegalStateException: Response has already been written
I…

David Marciel
- 865
- 1
- 12
- 29
0
votes
1 answer
Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token Vert.x
I'm using Kotlin and Vert.x and I have:
data class Product(
var id: UUID? = UUID.randomUUID(),
var name: String? = null,
@JsonFormat(shape=JsonFormat.Shape.ARRAY)
var pictures: JsonArray? = JsonArray()
)
and I'm trying to POST an…

Felipe Carolino
- 1
- 1
0
votes
1 answer
Chaos testing of Vertx Application
Pointers on any tool for chaos testing of Vertx application deployed on Openshift. Will chaos monkey work or any other tool out there?

Sandeep Shetty
- 167
- 2
- 12
0
votes
2 answers
Vertx HttpRequest .basicAuthentication() vs .putHeader("Authorization", "...")
Why does the following results in an "Unauthorized" response:
webClient
.getAbs("http://hello.com")
.basicAuthentication("user", "pw")
.rxSend()
.subscribe();
Whereas the following works fine:
…

yN.
- 1,847
- 5
- 30
- 47
0
votes
1 answer
How to Consume SOAP WSDL Using Vertx 3
i have a project in vertx.3, i wanna to consuming a SOAP service.
is there a lib in vertx that allow me to do that?
i do a lot of search and i get anything.
please some one can help me!

Mhammad Sellam
- 160
- 1
- 15
0
votes
1 answer
Keep getting errors when running JUnit test on my http client
I am creating a client to send requests to an API, and I am trying to write a Junit test but i keep getting this error.
Here is my client code which sends a request:
import io.netty.handler.codec.http.HttpResponse;
import…

monkey123
- 183
- 1
- 3
- 11
0
votes
1 answer
Vertx WebClient download file
Trying to download a file from this url using Vertx WebClient but not working. Am I missing something here?
// Create the web client and enable SSL/TLS with a trust store
WebClient client = WebClient.create(vertx,
new…

Philip K. Adetiloye
- 3,102
- 4
- 37
- 63