0

Since 6 July 2018 we have been receiving the following error when making API requests to Podio:

An exception of type 'System.NullReferenceException' occurred in Podio.NET.dll

but was not handled in user code... Line: PodioClient.AuthenticateWithApp(AppId, AppToken);

We haven't changed anything in our code.

This has basically just started happening. I can confirm we are using TLS 1.2.

Could someone shed some light on this issue?

We are using the libraries from here - http://podio.github.io/podio-dotnet/

Lovepreet Singh
  • 4,792
  • 1
  • 18
  • 36
  • Can you please share that piece of code where you are setting TLS? – Pavlo - Podio Jul 11 '18 at 10:56
  • We are not setting TLS in the code, TLS - 1.2 is already set on the server/machine. We are using window 10 to run our application in localhost. – Hassan Juma Jul 11 '18 at 14:18
  • @Pavlo-Podio did you see my comment? – Hassan Juma Jul 11 '18 at 14:35
  • I'm afraid that your server code is using TLS1.2 and your client code is still going through TLS1.0. http://podio.github.io/podio-dotnet/ got new PRs with fixes recently. – Pavlo - Podio Jul 11 '18 at 14:49
  • Thanks @Pavlo-Podio. We have to forced the application to read TLS 1.2 from server by adding the code below at the beginning of the application: 'ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 – Hassan Juma Jul 11 '18 at 16:29

2 Answers2

0

We have to forced the application to read TLS 1.2 from server by adding the code below at the beginning of the application:

'ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

But sometime the application is fail and return errors below, see screenshot attached.

Podio Errors

'2018-07-13 13:51:51.5860 ERROR Object reference not set to an instance of an object. Object reference not set to an instance of an object at PodioAPI.Podio.Request[T](RequestMethod requestMethod, String url, Object requestData, Object options). at PodioAPI.Podio.Get[T](String url, Dictionary`2 requestData, Object options) at PodioAPI.Services.FileService.DownloadFile(FileAttachment fileAttachment)'

  • This question/answer now duplicates https://stackoverflow.com/questions/51276158/podio-dot-net-client-library. Can you please delete it and upvote needed answer is other question? – Pavlo - Podio Jul 11 '18 at 17:35
  • @Pavlo-Podio - We updated the TLS 1.2, but since the changes from yesterday we have noticed the our application sometimes is working and sometime it is return error see comment below – Hassan Juma Jul 13 '18 at 12:59
  • @Pavlo-Podio '2018-07-13 13:51:51.5860 ERROR Object reference not set to an instance of an object. Object reference not set to an instance of an object at PodioAPI.Podio.Request[T](RequestMethod requestMethod, String url, Object requestData, Object options). at PodioAPI.Podio.Get[T](String url, Dictionary`2 requestData, Object options) at PodioAPI.Services.FileService.DownloadFile(FileAttachment fileAttachment)' – Hassan Juma Jul 13 '18 at 12:59
0

Please use newest Podio .Net Nuget packages that are now published:

Check them out :)

Pavlo - Podio
  • 2,003
  • 2
  • 10
  • 19