> Forums > Active Social > Community Support > Trim Trailing Spaces in Twitter API Consumer Key
Last Post 12 May 2011 05:02 PM by Steven Webster. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Not Resolved
Steven Webster
Customers
Steven Webster
Post Count:1665

--
12 May 2011 05:02 PM
    • Active Social Version: 1.9.1
    • DotNetNuke Version: 5.6.1
    Just found a UX issue with the twitter API Consumer Key.  It seem when you cut and paste your key from twitter there is a often trailing space there.  It "appears" correct to the administrator but when you click CP Save Settings the Consumer Key is saved with the trailing space but saves there is not indication of an issue with your credentials.

    Then when a group or profile owner goes to add their twitter account and saves changes the edit view sort of blows up.  It logs an error in the event log such as the one below but the user gets a generic module error.

    Recommendations:

    Trim trailing spaces on the key values.
    Perform an OAuth check on mouesout or on settings save and alert the Administrator that the credentials are not being accepted by twitter.


    Event Log Error

    Active.Modules.Social.Twitter.TwitterAPIException: Exception of type 'Active.Modules.Social.Twitter.TwitterAPIException' was thrown. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Active.Modules.Social.Twitter.TwitterOAuth.WebRequest(Method RequestMethod, String Url, String PostData) --- End of inner exception stack trace --- at Active.Modules.Social.Twitter.TwitterOAuth.WebRequest(Method RequestMethod, String Url, String PostData) at Active.Modules.Social.Twitter.TwitterOAuth.OAuthWebRequest(Method RequestMethod, String url, String PostData) at Active.Modules.Social.Twitter.TwitterOAuth.GetAuthorizationLink() at Active.Modules.Social.Controls.Journal.ParseJournalTools(String template) at Active.Modules.Social.Controls.Journal.Page_Load(Object sender, EventArgs e)
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    You are not authorized to post a reply.
    > Forums > Active Social > Community Support > Trim Trailing Spaces in Twitter API Consumer Key
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy