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

Unable to read data from the transport connection #33

Open
ismailmayat opened this issue Jun 16, 2020 · 1 comment
Open

Unable to read data from the transport connection #33

ismailmayat opened this issue Jun 16, 2020 · 1 comment
Labels

Comments

@ismailmayat
Copy link

Expected Behavior
Tried to make calls to build and Get however get following error:

Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

I tried to setup TLS and also tried to ignore any SSL errors but still get same error.

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls12; ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;

When I make curl requests using same build url and user and token it works fine.

Your Environment
I am running windows server 2016 and Jenkins ver. 2.222.1
My client code is .net 45

@ismailmayat
Copy link
Author

Update on this, if before making calls i add

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

I get a bit further I now get content length 0 error. I downloaded source and in CreateRequest added

request.ContentLength = 0;

everything now works

@null511 null511 added the bug label Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants