Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
29 views

I have a server that I make rest calls towards that returns part of its information through headers instead of putting it all in a body, sadly I do not own the code that runs on the server so I can't ...
David S's user avatar
  • 319
Best practices
1 vote
3 replies
61 views

I have a Spring Boot application that calls an external API. The API requires an API key to be passed as a query parameter, for example: https://api.example.com/data?apikey=123 I want to avoid ...
Dmitry Kopyshov's user avatar
0 votes
0 answers
43 views

I’m using the VS Code REST Client extension to call the Power BI REST API and then extract values from a previous response using JSONPath. I want to select a report by name using a variable ({{...
Jacek Antek's user avatar
0 votes
1 answer
116 views

I am trying to make a Call by the org.springframework.web.client.RestClient. The address/resource does definetly exist GET http://localhost:8080/someResource. It is retrievable by simple call in the ...
Dirk Schumacher's user avatar
0 votes
0 answers
54 views

When I use springboot3.2.5 restclient to call an API, occasionally there is a gap of about 3 seconds from the time the request is sent to the time the request is received by the receiver.This is the ...
Renjun Yu's user avatar
0 votes
0 answers
57 views

I have a service that calls a third-party API with RestClient using a default config, when trying to test it using @RestClientTest the mock server does not detect any incoming requests, I am not sure ...
udduu's user avatar
  • 131
0 votes
0 answers
167 views

I'm trying to make an HTTP request using RestClient in Rails, but I'm encountering an issue with the headers. Here is the code I'm using: headers = { 'Content-Type' => 'application/json', '...
andresV's user avatar
  • 71
0 votes
0 answers
99 views

I am trying to configure my spring restclient in a way that if hostname has "internal" in its name then do not go via proxy and if it is something else then go via proxy. We are currently ...
Akash tiwari's user avatar
0 votes
1 answer
252 views

I got implementation like this: @Service class AbcService { private final RestClient client; public AbcService(@Value("url") final String url) { this.restClient = RestClient.builder()...
y07k2's user avatar
  • 2,052
0 votes
0 answers
51 views

What should I do if I want to disconnect while still receiving responses from RestClient? (java, kotlin) val result = restClient().get() .uri("") .exchange { : HttpRequest, ...
jun's user avatar
  • 37
0 votes
1 answer
118 views

I am using REST CLIENT extension for visual code and trying to post report into workspace using this APIs: Microsoft Documentation for Posting Report File to Workspace with GET statement there is no ...
Jacek Antek's user avatar
2 votes
2 answers
271 views

Given a set of properties in an application.yaml restClient: clients: client1: connection-timeout: PT10s response-timeout: PT10s user-agent: test ...
Piritz's user avatar
  • 61
0 votes
0 answers
33 views

I’m building a multi-service architecture with a shared Gradle setup. Here's how my project is structured: Root Gradle Project: Manages shared dependencies and configurations. Child Gradle Projects: ...
user avatar
1 vote
0 answers
133 views

I want to refer to settings.json file variables in settings.json file using REST CLIENT extension in visual code. Below my variables in settings.json: { "rest-client.environmentVariables": { ...
Jacek Antek's user avatar
0 votes
2 answers
330 views

I recently switched to RestClient from RestTemplate and using SpringBoot 3.2.7 and Java 21 in my project. I noticed when microservice1 is calling microservice2 then the TraceId is not getting ...
astar's user avatar
  • 347
1 vote
0 answers
399 views

I created a TestRestClient and it worked perfectly, but if I inject another RestClient bean into my RestClientConfiguration class, it works, but in the tests, it gives the following error: Unable to ...
Vitor Coelho's user avatar
0 votes
1 answer
714 views

I have been testing this API and can only get it working when I use this RestClient. This RestClient wants to install about 20 other packages into my project so I would like to get it working with the ...
Jefferson's user avatar
  • 121
1 vote
0 answers
36 views

I am using RestClient (not Template!) to send a request to another server. Because of a missing header i get a 400 Error but can not read the body. When i make the request with postman i get a body &...
OnDemand's user avatar
  • 375
0 votes
1 answer
278 views

Mocking RestClient.RequestBodyUriSpec body. Mocking returns null when used in RestClient web service. Test case as below - package org.mytest.tests; import org.junit.jupiter.api.Test; import org....
Rupesh's user avatar
  • 1
1 vote
1 answer
628 views

I am working with a Quarkus-based service that accepts multiple file uploads and forwards them to another (Quarkus)service via a RestClient. The issue I am facing is that, although the files are ...
BananKongen's user avatar
0 votes
0 answers
102 views

I qm using restclient to call a webapi, but need to have its cUrl equivalent. var curl = httpClient.GenerateCurlInString(httpRequestMessage); I need something like this: var curl = httpClient....
Mostafa Arab's user avatar
1 vote
1 answer
952 views

Hi Spring Security Community, is there a good approach/ best practice for disabling the new OAuth2ClientHttpRequestInterceptor in Integration-Tests, which has been integrated in this PR for Release 6....
markory's user avatar
  • 21
1 vote
2 answers
3k views

I'm using Spring Boot 3 (3.3.1) and Java 21. When using the new RestClient I encountered two problems: the onStatus(...) method does not work if error 408 (timeoutexception) occurs. And as a result, ...
Heorhi Utseuski's user avatar
1 vote
1 answer
165 views

I am new to Helidon, and we want our Java app to support HTTPS for REST calls. I have a sample controller that returns some string, and my app currently runs on http://localhost:8080. How can I enable ...
NotACat's user avatar
  • 39
0 votes
1 answer
138 views

unable to get the emails from outlook by using graph api get method public List<Message> GetAllMails() { List<Message> mails = new List<Message>(); //var ...
Gokulsusan's user avatar
1 vote
1 answer
3k views

I'm currently working on a Spring Boot 3.2 application with Java 21, and I've enabled virtual threads for improved performance. However, I’m noticing that many platform threads are still being created,...
René Winkler's user avatar
5 votes
0 answers
796 views

I want to override the local.token value in settings.json. I can read the body and update a local variable but this means I need to run the token request and manually update the environment variable ...
mahbuburrahman rifat's user avatar
0 votes
0 answers
222 views

I've tryed to send 2 Values to an RestServer and get only errors. It does't matter if i try the bold Lines instead of the italic lines. var JSONValue: TJsonObject; begin RESTClient1.CleanupInstance;...
Stevie's user avatar
  • 1
0 votes
0 answers
46 views

I need to make a REST API PUT call in Groovy using RESTClient and json as the Content Type. This is what my code looks like: def params = ["content": listOfSymbols.join(","), "...
Neha's user avatar
  • 1
0 votes
1 answer
591 views

I have a Spring 6.1 RestClient: @Service @RequiredArgsConstructor public class ProductServiceClient { @Value("${spring.client.product.url}") private final String baseUrl; private ...
Undertaker's user avatar
0 votes
0 answers
76 views

In my ASP.NET MVC project (.Net Framework 4.7.2), I am consuming as API which is hosted on another server developed by vendor. Whenever I tried to hit same API through code, I am getting an error ...
Rahul  More's user avatar
2 votes
1 answer
2k views

Prior to asking this, I am already tried using: log.error("fail {} ", ex.getResponseBodyAsString()); I am already attaching .defaultStatusHandler() on the restClient. which is not really ...
Adi Prasetyo's user avatar
  • 1,057
0 votes
0 answers
62 views

I created a simple Nuxt app npx nuxi@latest init I then created an api route. i.e. a file test.ts in server/api with the basic stub export default defineEventHandler(async (event) => { // ... Do ...
Rabbi's user avatar
  • 4,752
0 votes
1 answer
204 views

I am using Quarkus RestClient and I encountered some problems. I have an URL, which is internally resolved to 4 different IP addresses (data and IP addresses are pseudonymized in this example): [user@...
Bevor's user avatar
  • 8,634
0 votes
0 answers
2k views

I'm working with the Insomnia REST client and I'm trying to generate a zero-padded random number between 000 and 999 to use as part of a request. I want to create an environment variable that ...
NickVnkn's user avatar
1 vote
1 answer
3k views

While i trying to conect polygon API using python: from polygon import RESTClient and it would result: cannot import name 'RESTClient' from 'polygon' But I dont know why it isn't work. It originaly ...
Jay Lin's user avatar
  • 29
1 vote
0 answers
383 views

I am calling a client API where I am getting the below error first time. org.springframework.web.client.ResourceAccessException: I/O error on POST request for URL: HTTP/1.1 header parser received no ...
Nishant Charan's user avatar
3 votes
1 answer
8k views

I am trying to build a RESTful client with jakarta 10.0.0 ClientBuilder.newClient() is failing with this error message: Exception in thread "main" java.lang.RuntimeException: java.lang....
Tom's user avatar
  • 668
0 votes
1 answer
2k views

I want to implement proxy in host and port, i tryed increment in to url but give errors i used spring.cloud.bootstrap.proxy.host=proxy1.lan.bnm.md spring.cloud.bootstrap.proxy.port=8080 but its not ...
zxc zxc's user avatar
1 vote
0 answers
364 views

I switched from RestTemplate to RestClient in my application and since switching I’m unable to get the same TraceId between services. Is anyone else having this same problem? I tried updating ...
Ashley James's user avatar
4 votes
1 answer
3k views

I have two microservices: One for user authentication (authentication microservice). One for handling video file storage (videoStore microService). Process : ("/create") belongs to ...
KnowledgePath's user avatar
0 votes
1 answer
800 views

I need to call an api endpoint multiple times in a loop. While the connection path remains same one parameter changes in every call. I have written it like below. I am opening the connection at the ...
Kushal Mondal's user avatar
0 votes
1 answer
1k views

I try to do this: @GetMapping("/db/video/getall") public ResponseEntity<List<VideoDto>> getAllVideo(@RequestParam String ownerEmail) { return ....; } import ...
KnowledgePath's user avatar
0 votes
1 answer
1k views

The oficial docs don't mention how to configure RestClient to decompress a gzip response. By default it doesn't seem to decompress it like WebClient does.
Ignasi's user avatar
  • 6,235
2 votes
1 answer
753 views

I am doing some request with rest client extension in VScode I would like to know if there is a way to get the current date and to use it in a request It would be something like # CreateLesson # @name ...
lambdaDev's user avatar
  • 551
1 vote
0 answers
308 views

I'm trying to change the settings of the VSCode extension: Rest-Client (https://marketplace.visualstudio.com/items?itemName=humao.rest-client). My goal would be to open http responses simply in new ...
Barnabás Kalydy's user avatar
3 votes
2 answers
2k views

I'm trying to grab the value "141" from the response using the expression @second = {{getall.response.body.[1].id}} HTTP/1.1 200 OK Connection: close Content-Type: application/json; charset=...
Jørgen Thyme's user avatar
1 vote
0 answers
87 views

I've been have a issue where I tried to use the RestClient lib to send two or more files to Kotlin Service endpoint where this controller needs to receive a files attributes that is a List<...
Flavio Guilherme's user avatar
3 votes
0 answers
1k views

I'm encountering an issue when attempting to use RestClientBuilder in my Java code to build a client with MicroProfile. I'm receiving the error message "No RestClientBuilderResolver ...
Silas Z's user avatar
  • 31
-1 votes
1 answer
1k views

I'm using RestClient for upstream communication and would like to add some enhancements to make it more robust. Here's my current setup: SimpleClientHttpRequestFactory factory = new ...
Md. Hasan Basri's user avatar

1
2 3 4 5
20