1
Vote

Unable to associate GitHub account

description

A generic error message "Something was wrong" is raised when one clicks ok upon OAuth browser authentication.

The problem is due to new API version of Github (v3).
The error is the following: The server committed a protocol violation. Section=ResponseStatusLine
In the programming literature, there are some solutions for this error, but nothing seems to work.
Moreover, various C# wrappers for Github api have the same error message in the same line of code, using the HttpWebRequest C# object. All of these are now deprecated and is suggested to use oktokit for .NET 4.5

More in detail:
analyzing the packets in Wireshark, we can see that a good authentication to github api uses TLS protocol version 1.2; the bad one uses TLS v1.
In .NET 4 is not possible to use the v1.2, but only in the .NET 4.5
More info: Microsoft Link

comments

fsportelli wrote Apr 2, 2014 at 11:10 PM

The problem is due to new API version of Github (v3).
The error is the following: The server committed a protocol violation. Section=ResponseStatusLine
In the programming literature, there are some solutions for this error, but nothing seems to work.
Moreover, various C# wrappers for Github api have the same error message in the same line of code, using the HttpWebRequest C# object. All of these are now deprecated and is suggested to use oktokit for .NET 4.5

fsportelli wrote Apr 3, 2014 at 11:24 AM

More in detail:
analyzing the packets in Wireshark, we can see that a good authentication to github api uses TLS protocol version 1.2; the bad one uses TLS v1.
In .NET 4 is not possible to use the v1.2, but only in the .NET 4.5
More info: TEXT

wrote Apr 3, 2014 at 11:26 AM

fcalefato wrote Apr 4, 2014 at 10:21 AM

Can't we just make a new build that targets .NET 4.5 without having to upgrade to VS 2012 or 2013?

fsportelli wrote Apr 4, 2014 at 3:33 PM

Is not possible use .NET 4.5 in VS2010.
Supported versions are 2012 and 2013.

wrote Apr 11, 2014 at 3:34 PM