973 questions
0
votes
1
answer
46
views
RestClient is not propgating TraceID
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 ...
0
votes
0
answers
92
views
Unable to use auto-configured MockRestServiceServer since MockServerRestClientCustomizer has been bound to more than one RestClient | two Beans
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 ...
0
votes
1
answer
147
views
C# HttpClient MultipartFormDataContent send integer values
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 ...
1
vote
0
answers
23
views
How can i read the body even a IOException or ResourceAccessException occcur in Spring RestClient?
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 &...
0
votes
1
answer
87
views
Spring RestCleint.RequestBodyUriSpec body mocking returns null
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....
1
vote
1
answer
131
views
Quarkus RestClient doesn't forward multipart file uploads—files received count is 0
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 ...
0
votes
0
answers
35
views
export restclient request to cUrl
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....
1
vote
1
answer
86
views
How properly configure RestClient OAuth2ClientHttpRequestInterceptor in Integration-Test
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....
0
votes
0
answers
37
views
Parsing _embedded items from HAL with Quarkus REST client
For Quarkus REST extension I can use quarkus-rest-links extension to support HAL format. There are two handy annotation to inject links @RestLink(rel = "list"), @InjectRestLinks.
I'm trying ...
0
votes
2
answers
597
views
Spring boot 3 RestClient does't catch TimeoutException
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, ...
1
vote
1
answer
105
views
How can I enable HTTPS support for localhost?
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 ...
0
votes
1
answer
103
views
unable to get the emails from outlook by using graph api - getting NullReferenceException: Object reference not set to an instance of an object error
unable to get the emails from outlook by using graph api get method
public List<Message> GetAllMails()
{
List<Message> mails = new List<Message>();
//var ...
0
votes
1
answer
1k
views
Virtual Threads Not Being Used in Spring Boot 3.2 Application Despite Configuration
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,...
4
votes
0
answers
381
views
Update environment variable based on response body in .http file (vscode and rest-client)
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 ...
0
votes
0
answers
103
views
Delphi 11 RestClient Request fails with some errors
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;...
0
votes
0
answers
28
views
Getting groovyx.net.http.EncoderRegistry.encodeForm() Error
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(","), "...
0
votes
1
answer
363
views
Spring 6.1 RestClient JUnit Mock Test
I have a Spring 6.1 RestClient:
@Service
@RequiredArgsConstructor
public class ProductServiceClient {
@Value("${spring.client.product.url}")
private final String baseUrl;
private ...
0
votes
0
answers
68
views
Error to restClient & HttpWebRequest- The request was aborted: Could not create SSL/TLS secure channel
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 ...
0
votes
0
answers
69
views
NetSuite Account Integration API Issue in c# (oAuth 1.0)
I'm integrating NetSuite Account API into Asp.Net c#,I'm using oAuth 1.0 Authorization. i'm getting unauhthorized error,
Authorization
OAuth 1.0
Consumer Key
Consumer Secret
Token
Token Secret
...
1
vote
1
answer
1k
views
How to log Spring Boot 3 httpRestClient error response.body as readable string?
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 ...
0
votes
0
answers
49
views
VS Code Rest Client doesn't work with Nuxt 3 server routes
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 ...
0
votes
1
answer
104
views
Quarkus RestClient DNS failover on multiple A type IP addresses?
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@...
0
votes
0
answers
795
views
How to Generate a Padded Random Number as a Variable in Insomnia REST Client
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 ...
0
votes
1
answer
983
views
cannot import name 'RESTClient' from 'polygon'
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 ...
1
vote
0
answers
300
views
I/O error on POST request for API: HTTP/1.1 header parser received no bytes
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 ...
0
votes
0
answers
133
views
How to pass parameters in LHS Brackets format using rest client
There is some API that involves passing parameters using LHS Brackets. Specifically, we are talking about the CMS Strapi API: https://docs.strapi.io/dev-docs/api/rest/parameters
I'm using spring boot ...
3
votes
1
answer
4k
views
Provider for jakarta.ws.rs.client.ClientBuilder cannot be found
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....
0
votes
1
answer
717
views
Using RestClient, i don't know how implement proxy, need to declare the port and host
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 ...
1
vote
0
answers
225
views
SpringBoot RestClient TraceId
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 ...
1
vote
1
answer
728
views
How to transmit Multipart file object into Spring web RestClient post method
I have two microservices:
One for user authentication (authentication microservice).
One for handling video file storage (videoStore microService).
Process :
("/create") belongs to ...
0
votes
1
answer
546
views
What is the most efficient way to call rest service multiple times in a loop
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 ...
0
votes
1
answer
777
views
Does springframework.web.client RestClient handles @requestParam [duplicate]
I try to do this:
@GetMapping("/db/video/getall")
public ResponseEntity<List<VideoDto>> getAllVideo(@RequestParam String ownerEmail) {
return ....;
}
import ...
0
votes
1
answer
632
views
How to decompress gzip response body using Spring RestClient?
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.
1
vote
1
answer
458
views
VSCode REST client : how to get now date
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 ...
0
votes
0
answers
1k
views
Suggest a tool like Postman to connect using TCP/IP and send and receive messages on the same socket
I have written a program to create a persistent TCP/IP connection to a device and read unsolicited messages from the socket and also write message to the same socket and it is working fine.
I wanted ...
1
vote
0
answers
163
views
How to prevent rest-client from opening a http response in split screen in VsCode?
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 ...
0
votes
0
answers
40
views
Ruby upgrade from version 2.3.2 to 2.7.7 breaks REST API response body
Recently I updated my application's ruby version from 2.3.2 to 2.7.7.
My application uses https://github.com/rest-client/rest-client gem to request data from a 3rd-party API.
While using ruby version ...
1
vote
1
answer
1k
views
VSCode REST client - how to get value from array in response
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=...
1
vote
0
answers
77
views
In Ruby, how to send multiple files in single request using RESTClient
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<...
3
votes
0
answers
795
views
Getting "No RestClientBuilderResolver implementation found!" when using RestClientBuilder
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 ...
-1
votes
1
answer
758
views
Seeking Enhancements for RestClient Configuration [closed]
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 ...
0
votes
1
answer
64
views
Netbeans REST Client Automatically Opening URLs
I'm having a problem in Apache NetBeans IDE 19 where I'm trying to open any link, and instead of my default browser (Tools->Options->General->Web Browser: Chrome), every link I open using ...
0
votes
0
answers
321
views
Delphi TRestClient send Body as "data-raw"
How to add body parameter to TRestClient like in Postman? If body data is defined like below as application/x-www-form-urlencoded it would be wrong:
curl -L -X POST 'https://ms2.medapp.ch/rest/lg1/v1/...
-2
votes
1
answer
498
views
rest.client stuck on waiting
The handler for / request is
module.exports = {
homepageHandler: async function (req, res) {
console.log(`index page.`);
return JSON.stringify({
"message": "welcome&...
0
votes
1
answer
43
views
Ruby's rest-client isn't replicating my CURL request, and I don't know what I'm doing any differently
Here's my CURL request:
curl -X POST -u apikey:secret 'https://numbers.api.sinch.com/v1/projects/{project ID}/availableNumbers:rentAny' \
-d '{
"regionCode": "US",
"...
0
votes
1
answer
237
views
How to view actual header values sent after a request?
How do you see the actual headers that was sent in a request after you send out a request in Rest Client? I can see the response completely, but it does not show the actual headers that were sent out. ...
0
votes
0
answers
352
views
Disable URL Encoding ? [Quarkus]
I got an URL for querying Prometheus: .../api/v1/query?query=rate(prometheus_http_requests_total[1m]) . But it always return 404 Error and when I debug, the URL changed to this: .../api/v1/query?query=...
0
votes
1
answer
1k
views
Quarkus reactive with http request on ContainerRequestFilter
I'm want to made a request on my ContainerRequestFilter
@Startup
@Provider
@PreMatching
public class SecurityOverrideFilter implements ContainerRequestFilter {
@Inject
Logger logger;
@...
1
vote
3
answers
758
views
How to convert my REST API Delphi project which uses MVCFramework to use standard RAD Studio components instead
I develop a project which an old programmer in our company has started. He has used MVCFramework (https://github.com/danieleteti/delphimvcframework) to connect to a portal. Because his code is written ...
-1
votes
1
answer
83
views
Unable to Connect MongoDB with Node.js
I recently learned MongoDB and connected it to Node.js, but I encountered an error that I am unable to resolve. I am using VS Code, and a pop-up similar to the following appeared:
""The ...