Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request timed out #100062

Closed
dongzhaosheng73 opened this issue Mar 21, 2024 · 8 comments
Closed

Request timed out #100062

dongzhaosheng73 opened this issue Mar 21, 2024 · 8 comments
Labels
area-System.Net.Http needs-author-action An issue or pull request that requires more info or actions from the author. no-recent-activity
Milestone

Comments

@dongzhaosheng73
Copy link

Description

The client occasionally sends System.TimeoutException: Request timed out
---> System.Threading.Tasks.TaskCanceledException: A task was canceled. The error client occasionally sends System.TimeoutException: Request timed out
---> System.Threading.Tasks.TaskCanceledException: A task was canceled. mistake.

Reproduction Steps

In random recurrence, either the client must be restarted or HttpClient must use a new socket.
I found that there were already similar problems but there was no practical solution.

restsharp/RestSharp#1092

Expected behavior

Request timed out should not affect subsequent request behavior

Actual behavior

Request timed out Subsequent requests will cause the Request timed out until the client restarts

Regression?

No response

Known Workarounds

No response

Configuration

.net 6
windows11
x86
RestSharp 108.0.2

Other information

No response

Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Mar 21, 2024
@antonfirsov
Copy link
Member

antonfirsov commented Mar 25, 2024

@dongzhaosheng73 this is not actionable for us with the information provided. Given the issue is RestSharp-specific and you also opened restsharp/RestSharp#2176, I think you will have better chances getting help there, but they would also need more information.

The best would be if you could provide a a repro. If it's not possible, detailed description of the client & server scenario with at least some code is still desired.

There is some chance that this might be related to .NET 6 connection pooling issues. Can you try if upgrading to .NET 8 solves the problem?

@antonfirsov
Copy link
Member

antonfirsov commented Mar 25, 2024

Triage: moving to Future for now, in the unlikely case it turns out to be an unknown problem with HttpClient, we can bump the priority. Otherwise we should close.

@antonfirsov antonfirsov removed the untriaged New issue has not been triaged by the area owner label Mar 25, 2024
@antonfirsov antonfirsov added this to the Future milestone Mar 25, 2024
@antonfirsov antonfirsov added the needs-author-action An issue or pull request that requires more info or actions from the author. label Mar 25, 2024
Copy link
Contributor

This issue has been marked needs-author-action and may be missing some important information.

@alexeyzimarev
Copy link

I am not sure that the issue is related to RestSharp as RestSharp just forms a request message and sends it over via HttpClient.

@ManickaP
Copy link
Member

ManickaP commented Apr 2, 2024

Whether this is related to RestSharp or not doesn't change that fact that the issue as-is now is not actionable. We need a repro case, preferably just with HttpClient. Or traces, captures, logs from reporter's environment.

@alexeyzimarev
Copy link

What I meant is that the issue opened in RestSharp repository is not actionable as well as RestSharp's role is to create a request message and pass it over to HttpClient. My challenge is with "you will have better chances getting help there", as I don't think I can provide any help with the issue. Surely, I agree with your point that the issue that occurs in a specific environment, at random, is almost impossible to fix in lack of reliable repro.

Copy link
Contributor

This issue has been automatically marked no-recent-activity because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will remove no-recent-activity.

@dotnet-policy-service dotnet-policy-service bot removed this from the Future milestone May 4, 2024
@karelz karelz added this to the 9.0.0 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Net.Http needs-author-action An issue or pull request that requires more info or actions from the author. no-recent-activity
Projects
None yet
Development

No branches or pull requests

5 participants