Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Web Request Failed

$
0
0
Hi,

Thank you for these information. For some reason Tweetinvi does not handle the WebException for you when you use the CredentialsCreator.
I have created a new Work Item and this will be fixed in the next release of Tweetinvi (0.9.6.0).
You can vote +1 on it if you want to be notified when a fixed is released.

In the meantime in order to help you could you execute the following code and tell me what are the exception details:
try
{
    var applicationCredentials = CredentialsCreator.GenerateApplicationCredentials(Settings.GetString("TwitterConsumerKey"), Settings.GetString("TwitterConsumerSecret"));
    var newCredentials = CredentialsCreator.GetCredentialsFromCallbackURL(oContext.Request.Url.AbsoluteUri, applicationCredentials);
}
catch (TwitterException ex)
{
    ExceptionHandler.AddWebException(ex, ex.URL);

    // Here I need as much information as you can provide me!!!var exceptionDetails = ExceptionHandler.GetLastException().ToString();
}
// You will need to add the following namespaceusing Tweetinvi.Logic.Exceptions;
Cheers,
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>