Skip to main content
1 vote
0 answers
59 views

HttpClient.SendAsync throws InvalidOperationException: Could not create getter for System.Threading.ExecutionContext& Context [closed]

I’m seeing an exception on await client.SendAsync(request). The stack trace points into Json.NET, which seems unrelated to the HTTP call itself, but it consistently happens at SendAsync. Exception ...
Nneka's user avatar
  • 184
1 vote
0 answers
66 views

Set-Cookie header disappears after some time when using HttpClient with DelegatingHandler in ASP.NET Core

I have a .NET Core project with two layers: an API layer and a UI layer, both in the same solution. The UI layer is built with ASP.NET Core MVC, where controllers call services, and the services use ...
za mk's user avatar
  • 11
0 votes
0 answers
66 views

How to monitor HTTP client connection pool usage (available vs used connections, pool limit exceeded)

I am using the Quarkus REST Client. I would like to monitor the HTTP connection pool managed by PoolingHttpClientConnectionManager. Specifically, I would like to know: maximum number of connections ...
amine gh's user avatar
1 vote
2 answers
79 views

Does httpclient need to consume httpentity in finally?

1.The following code encapsulates the post method, is EntityUtils.consume(httpEntity); in finally segment code redundant? I asked claudai and he said it's not redundant, and asked chatgpt and he said ...
Rebecca's user avatar
  • 259
1 vote
0 answers
65 views

Karate 1.5.1 custom HttpClientFactory (PSK-TLS) works in IntelliJ but fails with SSLHandshakeException from command line

`I recently upgraded a test automation project from Karate 0.9.6 to Karate 1.5.1. In 0.9.6, I was using karate-apache for my custom HTTP client implementation. Since karate-apache is no longer ...
RMP's user avatar
  • 11
0 votes
1 answer
35 views

Migrate http client 4 & 5 using SOCKS

I'd like to migrate from HTTP Client 4 to 5 using SOCKS. Here's my code with HTTP Client 4: InetSocketAddress socksaddr = new InetSocketAddress((String) call.props.get(...
Nicolas G.'s user avatar
4 votes
1 answer
145 views

Cannot replicate successful Postman request with HttpClient

I want to download a web page using HttpClient in .NET, but I receive a 403 Forbidden response, whereas using Postman with the same request parameters, I get a 200 OK. Here's my C# code: var client = ...
Paul Dubsky's user avatar
1 vote
1 answer
99 views

Boost Beast (Asio) HttpServer and HttpClient: recommendations on io_context usage

I've recently implemented an async HTTP Server and Client based on C++ Boost Beast (V.1.83). I'm new to the io_context approach and even if it all seems to be working fine I'm not at all convinced of ...
Kite's user avatar
  • 429
0 votes
0 answers
50 views

How to connect to server side project in Blazor with .NET 9 from client project

I have created a Blazor web assembly project that has two projects: a server-side and a client-side project. However, in .NET 8 and .NET 9, it is not possible to access the resources of the server-...
Hosein Ghasemi's user avatar
0 votes
1 answer
405 views

java.lang.ClassNotFoundException: org.apache.hc.client5.http.ssl.TlsSocketStrategy when using docker-java API 3.5.0

I'm trying to use the Docker-Java API. Following the instruction in https://github.com/docker-java/docker-java/blob/main/docs/getting_started.md I build a DockerClientConfig and try to build a ...
Chengyuan Zhang's user avatar
1 vote
1 answer
85 views

Error: the process cannot access the file 'filename' because it is being used by another process

I have the following structure for my code: public async Task FileDownloader(CancellationToken cancellationToken) { string url = url; string tempFolder = Path.GetTempPath(); string ...
EvoMoreira's user avatar
0 votes
1 answer
180 views

Call SharePoint REST API inside Azure Fucntion on .NET 8 is causing this error "Response status code does not indicate success: 401 (Unauthorized)."

We have an Azure Function that runs on a scheduled basis, and we have enabled its managed identity. Using this identity, we've successfully integrated the function with both Azure SQL database and ...
microsoftdeveloperdesigner's user avatar
0 votes
0 answers
95 views

How to Dynamically Configure HttpClient Headers (BaseUrl, Endpoint, API Key) for StrawberryShake GraphQL Client at Runtime?

builder.Services.Configure<PIMCoreSettings>(builder.Configuration.GetSection("PIMCoreSettings")); builder.Services.AddHttpClient( SupplierEngine.PIMCore.GraphQLClient.ServerGraphQL....
Kishan Jamariya's user avatar
0 votes
0 answers
55 views

Use keycloak-admin-client with httpclient5

I migrate legacy application on spring boot 3 Connect httpclient5, and removed the dependency httpclient4, as it conflicts with many modern libraries that use exactlyhttpclient5 And update dependency ...
Mike Sonarov's user avatar
0 votes
1 answer
104 views

Java Http client: java.io.IOException: Connection reset

We have a service which is calling a service over Http using java.net.http.HttpClient We are getting below errors for 1-2% of the requests while calling that service , which mostly gets resolved if we ...
ankur garg's user avatar

15 30 50 per page
1
2 3 4 5
460