YAFLogo

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
11 years ago
1. Download latest version from codeplex.

http://yafnet.codeplex.com/wikipage?title=Twitter%20Integration&referringTitle=Documentation 

3. Click on Login page.

I got the error message below. The login page should not show this error if FB or Twitter login is down or settings are incorrect. It should simply not show "Sign in with twitter" button.


Server Error in '/' Application.
The remote server returned an error: (401) Unauthorized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (401) Unauthorized.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[WebException: The remote server returned an error: (401) Unauthorized.]
   System.Net.HttpWebRequest.GetResponse() +6442408
   YAF.Core.Services.Twitter.OAuthTwitter.WebResponseGet(HttpWebRequest webRequest) in d:\Website\yafnet_1236b34131cb\yafsrc\YAF.Core\Services\Twitter\OAuthTwitter.cs:372
   YAF.Core.Services.Twitter.OAuthTwitter.WebRequest(Method method, String url, String postData) in d:\Website\yafnet_1236b34131cb\yafsrc\YAF.Core\Services\Twitter\OAuthTwitter.cs:346
   YAF.Core.Services.Twitter.OAuthTwitter.OAuthWebRequest(Method method, String url, String postData) in d:\Website\yafnet_1236b34131cb\yafsrc\YAF.Core\Services\Twitter\OAuthTwitter.cs:475
   YAF.Core.Services.Twitter.OAuthTwitter.AuthorizationLinkGet() in d:\Website\yafnet_1236b34131cb\yafsrc\YAF.Core\Services\Twitter\OAuthTwitter.cs:282
   YAF.Core.Services.YafSingleSignOnUser.GenerateTwitterLoginUrl(Boolean generatePopUpUrl) in d:\Website\yafnet_1236b34131cb\yafsrc\YAF.Core\Services\YafSingleSignOnUser.cs:62
   YAF.Pages.login.Page_Load(Object sender, EventArgs e) +1183
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
11 years ago
This issue is related to the digest error you reported. BaseUrlMask needs to be set to an absolute url (in 2.00 this value will be set automatically during installation).

I got the error message below. The login page should not show this error if FB or Twitter login is down or settings are incorrect. It should simply not show "Sign in with twitter" button.

i changed that the twitter button is no hidden when "something goes wrong".