You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to increase the timeout of my ReleaseAssetUpload object like this:
var assetUpload = new ReleaseAssetUpload(
trimmed_filename,
content_type,
archiveContents,
new TimeSpan(1,30,0)
);
// Upload the file to release.
var asset = client.Release.UploadAsset(result, assetUpload).Result;
Afaik this means one and a half hours of timeout. Hoewever this doesn't work and my connection is disconnected after a couple of minutes, resulting in:
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at GithubReleaser.Program.Main(String[] args) in d:\workspace\GithubReleaseCMD\GithubReleaseCMD\Program.cs:line 121
Any idea?
The text was updated successfully, but these errors were encountered:
Thank you @naveensrinivasan for pointing me in the right direction. I just needed a quick commandline tool so what I did is that I just added a timeout to the default Http client in the HttpClientAdapter here. I know It's ugly (I had to turn off Code Analysis for that !) but it works for me.
👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
Hi.
I'm trying to increase the timeout of my ReleaseAssetUpload object like this:
Afaik this means one and a half hours of timeout. Hoewever this doesn't work and my connection is disconnected after a couple of minutes, resulting in:
Any idea?
The text was updated successfully, but these errors were encountered: