Jenkins.NET icon indicating copy to clipboard operation
Jenkins.NET copied to clipboard

System.Net.WebException: The remote server returned an error: (411) Length Required

Open TomW-Skyline opened this issue 4 months ago • 0 comments

When using this library in a .NET Framework 4.7.2 project, the following exception occurs. Same code in .NET 8.0 works fine.

Unhandled Exception: JenkinsNET.Exceptions.JenkinsJobBuildException: Failed to build Jenkins Job '...'! ---> System.Net.WebException: The remote server returned an error: (411) Length Required. at System.Net.HttpWebRequest.GetResponse() at JenkinsNET.Internal.JenkinsHttpCommand.Run() at JenkinsNET.JenkinsClientJobs.Build(String jobName)

TomW-Skyline avatar Oct 30 '24 07:10 TomW-Skyline