{"action":"created","issue":{"url":"https://api.github.com/repos/SimpleAuthentication/SimpleAuthentication/issues/161","labels_url":"https://api.github.com/repos/SimpleAuthentication/SimpleAuthentication/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/SimpleAuthentication/SimpleAuthentication/issues/161/comments","events_url":"https://api.github.com/repos/SimpleAuthentication/SimpleAuthentication/issues/161/events","html_url":"https://github.com/SimpleAuthentication/SimpleAuthentication/issues/161","id":55516304,"number":161,"title":"Failed to obtain a request token from the Twitter api","user":{"login":"ThomasArdal","id":563206,"avatar_url":"https://avatars.githubusercontent.com/u/563206?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasArdal","html_url":"https://github.com/ThomasArdal","followers_url":"https://api.github.com/users/ThomasArdal/followers","following_url":"https://api.github.com/users/ThomasArdal/following{/other_user}","gists_url":"https://api.github.com/users/ThomasArdal/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasArdal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasArdal/subscriptions","organizations_url":"https://api.github.com/users/ThomasArdal/orgs","repos_url":"https://api.github.com/users/ThomasArdal/repos","events_url":"https://api.github.com/users/ThomasArdal/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasArdal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T18:08:25Z","updated_at":"2015-01-26T22:37:27Z","closed_at":null,"body":"I keep getting the following exception from time to time:\r\n\r\n\"Failed to obtain a request token from the Twitter api OR the the response was not an HTTP Status 200 OK. Response Status: 0. Response Description: . Error Message: The request was aborted: Could not create SSL/TLS secure channel..\"\r\n\r\nThe error can occur and if I try again 3 seconds later, everything works. Here's the entire stacktrace:\r\n\r\n\tSimpleAuthentication.Core.Exceptions.AuthenticationException: Failed to obtain a request token from the Twitter api OR the the response was not an HTTP Status 200 OK. Response Status: 0. Response Description: . Error Message: The request was aborted: Could not create SSL/TLS secure channel..\r\n\t   at SimpleAuthentication.Core.Providers.TwitterProvider.RetrieveRequestToken(Uri callbackUri, String state)\r\n\t   at SimpleAuthentication.Core.Providers.TwitterProvider.RedirectToAuthenticate(Uri callbackUri)\r\n\t   at SimpleAuthentication.Mvc.SimpleAuthenticationController.RedirectToProvider(RedirectToProviderInputModel inputModel)\r\n\t   at lambda_method(Closure , ControllerBase , Object[] )\r\n\t   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)\r\n\t   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)\r\n\t   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)\r\n\t   at System.Web.Mvc.Async.AsyncControllerActionInvoker.ActionInvocation.InvokeSynchronousActionMethod()\r\n\t   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)\r\n\t   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()\r\n\t   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()\r\n\t   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)\r\n\t   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()\r\n\t   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)\r\n\t   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag)\r\n\t   at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag)\r\n\t   at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult](IAsyncResult asyncResult, Object tag)\r\n\t   at System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag)\r\n\t   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)\r\n\t   at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)\r\n\t   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n\t   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n\t   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)"},"comment":{"url":"https://api.github.com/repos/SimpleAuthentication/SimpleAuthentication/issues/comments/71553505","html_url":"https://github.com/SimpleAuthentication/SimpleAuthentication/issues/161#issuecomment-71553505","issue_url":"https://api.github.com/repos/SimpleAuthentication/SimpleAuthentication/issues/161","id":71553505,"user":{"login":"PureKrome","id":899878,"avatar_url":"https://avatars.githubusercontent.com/u/899878?v=3","gravatar_id":"","url":"https://api.github.com/users/PureKrome","html_url":"https://github.com/PureKrome","followers_url":"https://api.github.com/users/PureKrome/followers","following_url":"https://api.github.com/users/PureKrome/following{/other_user}","gists_url":"https://api.github.com/users/PureKrome/gists{/gist_id}","starred_url":"https://api.github.com/users/PureKrome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PureKrome/subscriptions","organizations_url":"https://api.github.com/users/PureKrome/orgs","repos_url":"https://api.github.com/users/PureKrome/repos","events_url":"https://api.github.com/users/PureKrome/events{/privacy}","received_events_url":"https://api.github.com/users/PureKrome/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T22:37:27Z","updated_at":"2015-01-26T22:37:27Z","body":"Hi @ThomasArdal - I have honestly no idea :(\r\n\r\nIf it was -every- time, then I would have guessed it was because of [POODLE and SSLv3 was disabled](https://twittercommunity.com/t/twitter-no-longer-supports-sslv3/25557).\r\n\r\nCould you try adding this to ... say your global.asax startup stuff\r\n\r\n   ServicePointManager.Expect100Continue = true;\r\n   ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;\r\n\r\nor in the `web.config` where ever that setting is.\r\n\r\nThe error feels like it's trying to do the SSL cert dance .. and fails. This means it could be because of some invalid cert getting dl'd (from a rogue target server) or a timeout while trying to grab the cert details.. for example.\r\n"}}