I had been using I am using Atlassian.SDK C# v10.3.0 for months until end Jun without problems. Then, I started getting the "Could not create SSL/TLS secure channel" error, so I updated to Atlassian.SDK C# v10.6.0, and added TLS1.2 before calling CreateRestClient:
// server requires TLS1.2 due to vulnerability in older protocols
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
Jira = Jira.CreateRestClient("https://company.atlassian.net", txtUsername.Text, txtPassword.Text);
And it was able to to connect properly without the error, but then next when I tried to call
var user = Jira.Users.GetUserAsync("admin");
user.Wait(); I get an exception with InnerException:
@{"Response Content: <html>\n\n<head>\n \n\n\n\n\n\n <script id=\"@atlassian/spa-iframe-script\" type=\"text/javascript\">\n (function() {\n var spaIframeRegex = /([&?]spaIframe=true*$|spaIframe=true&|[?&]spaIframe=true(?=#))/;\n ...What is happening and how can I resolve it?