0

I have been using the Tweetinvi library to search tweets(.NET 4.7.2) for my application. Till last week the application worked fine without issues. Recently I have noticed that the application would return an error for a few minutes and then go back to working as expected. I did some reading and found that this maybe due to the fact that Twitter now supports TLS 1.2, so before the Authentication method in my code I added the line below :

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | 
                                       SecurityProtocolType.Tls11 |
                                       SecurityProtocolType.Tls12;

This has been suggested in a few articles. However, I still see the same pattern repeating. The application isn't consistent any more and the debug log says it returns a null object on search.

Is there any other reason or solution for this issue?

s_om
  • 661
  • 2
  • 9
  • 24

0 Answers0