rdt-client icon indicating copy to clipboard operation
rdt-client copied to clipboard

The request was canceled due to the configured HttpClient.Timeout of 10 seconds elapsing.

Open doobersn opened this issue 7 months ago • 6 comments

For some reason i’ve just been starting to get these errors.

What version are you using? Newest version

What OS are you running? unraid

Are you using Docker or as a service? Yes, docker.

Which debrid provider are you using? real debrid

Which downloader are you using? default one

Please attach a log file here with the log setting set to debug

Can’t figure out how to generate a log.

doobersn avatar May 13 '25 15:05 doobersn

For some reason i’ve just been starting to get these errors.

What version are you using? Newest version

What OS are you running? unraid

Are you using Docker or as a service? Yes, docker.

Which debrid provider are you using? real debrid

Which downloader are you using? default one

Please attach a log file here with the log setting set to debug

Can’t figure out how to generate a log.

Your logs should be in your /appdata/rdtclient

Joshua-18 avatar May 18 '25 13:05 Joshua-18

I'm also facing this issue starting recently. The logs say it timed out after 10 seconds. Raising the timeout to 30 seconds did not help either. Please see detailed logs below.

System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 10 seconds elapsing.
 ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
 ---> System.TimeoutException: A task was canceled.
   at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
   at Polly.AsyncPolicy`1.ExecuteInternalAsync(Func`3 action, Context context, Boolean continueOnCapturedContext, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.PolicyHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|4_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
   --- End of inner exception stack trace ---
   at RDNET.Requests.Request(String baseUrl, String url, String headerOutput, Boolean requireAuthentication, RequestType requestType, HttpContent data, CancellationToken cancellationToken)
   at RDNET.Requests.Request[T](String baseUrl, String url, Boolean requireAuthentication, RequestType requestType, HttpContent data, CancellationToken cancellationToken)
   at RDNET.Requests.PostRequestAsync[T](String url, IEnumerable`1 data, Boolean requireAuthentication, CancellationToken cancellationToken)
   at RDNET.TorrentsApi.AddMagnetAsync(String magnet, CancellationToken cancellationToken)
   at RdtClient.Service.Services.TorrentClients.RealDebridTorrentClient.AddMagnet(String magnetLink) in /appserver/server/RdtClient.Service/Services/TorrentClients/RealDebridTorrentClient.cs:line 131
   at RdtClient.Service.Services.Torrents.DequeueFromDebridQueue(Torrent torrent) in /appserver/server/RdtClient.Service/Services/Torrents.cs:line 234
   at RdtClient.Service.Services.TorrentRunner.Tick() in /appserver/server/RdtClient.Service/Services/TorrentRunner.cs:line 339

digiorama-codes avatar May 27 '25 13:05 digiorama-codes

I've been getting a lot of these

evilpig avatar May 28 '25 01:05 evilpig

Yes, having same issue ever since i updated to 113 but it seems it's not RDTClient problem since i've tried to downgrade and still had the same issue. EDIT: I'm also on Unraid, not sure if it's relevant though.

Amcro avatar May 28 '25 17:05 Amcro

Do alternative api urls work, like api-1.real-debrid.com (or api-2, …, api-9), work? You can change this setting in the Provider tab in settings.

Does the api work when you use curl/iwr from the host machine? If you’re on windows, run this in powershell:

iwr "https://api.real-debrid.com/rest/1.0/time/iso"

If you’re on Linux, run this from whichever command line you prefer

curl "https://api.real-debrid.com/rest/1.0/time/iso"

Cucumberrbob avatar May 31 '25 12:05 Cucumberrbob

I've tried changing api urls, and i think i found out it happens when it's infringing torrent on real debrid. It looks like it hangs when it doesn't get downloading torrent or download links response from real debrid. Sometimes it recognizes infringing torrent but sometimes it's just waiting for real debrid to get the links.

Today i had the case where it was waiting on "Not Yet Added to Provider" like it usually hangs, i've tried to add magnet link manually to real debrid then i found out it's infringing torrent and when i tried to delete torrent from RDTC i just got logged out. I've tried to delete it multiple times but it would log me out every time. Then i restarted container and it recognized the response from real debrid as infringing torrent and then i could finally delete the torrent.

Just for reference i'm using Docker container on version 2.0.114.0.

Amcro avatar Jul 01 '25 21:07 Amcro