Skip to content

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

Description

@TomW-Skyline

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions