Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random null reference errors at PodioAPI.Podio.Request[T] #43

Open
aztommylee opened this issue Dec 12, 2017 · 9 comments
Open

Random null reference errors at PodioAPI.Podio.Request[T] #43

aztommylee opened this issue Dec 12, 2017 · 9 comments

Comments

@aztommylee
Copy link
Contributor

Using NuGet Podio.Net package version 1.5.6

Doesn't seem to be a rhyme or reason to it, but we are getting occasional NullRefenceExceptions in the Request method after calling AddItem or UpdateItem. Is there a way to build the Non-Async version of Podio.net to debug further? Unless I'm missing something, the repository only contains async code.

System.NullReferenceException: 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.Put[T](String url, Object requestData, Object options)
at PodioAPI.Services.ItemService.UpdateItem(Item item, Nullable1 spaceId, Nullable1 revision, Boolean silent, Boolean hook)
at RAPodioLib.RAPodioAPI.InsertUpdateAgentContact(Podio podio, Property property, DataTable agentData, DataTable brokerData) in D:\LocalGit\PodioLib\RAPodioAPI.cs:line 556

System.NullReferenceException: 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.Post[T](String url, Object requestData, Object options)
at PodioAPI.Services.ItemService.AddNewItem(Int32 appId, Item item, Nullable`1 spaceId, Boolean silent, Boolean hook)
at RAPodioLib.RAPodioAPI.InsertUpdateProperty(Podio podio, Property property, Int32 mlsPhotoID) in D:\LocalGit\PodioLib\RAPodioAPI.cs:line 315

@AjmalVh
Copy link
Contributor

AjmalVh commented Dec 12, 2017 via email

@clarkd
Copy link

clarkd commented Jul 9, 2018

We seem to be experiencing a similar issue (same exception stack) but from PodioAPI.Podio.Authenticate

@regnerhenrique
Copy link

Hello, I'm also having the same problem in AuthenticateWithApp, I made the project clone and debugging it hangs on the HttpClient.SendAsync (httpRequest) call in the Request method in Podio.cs

@clarkd
Copy link

clarkd commented Jul 11, 2018 via email

@regnerhenrique
Copy link

Ohhh @clarkd you resolved the problem! Thanks very much, my friend.

@clarkd
Copy link

clarkd commented Jul 11, 2018 via email

@myktra
Copy link

myktra commented Jul 17, 2018

FWIW, we have an application built on an older version of the .NET Framework (4.5) on an isolated workstation and were experiencing the same issues. After applying some registry settings we were able to get a workaround in place to force the application to use safer versions of TLS.

See:

https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls#configuring-security-via-the-windows-registry

Specifically we added the two registry entries mentioned in the second article, SchUseStrongCrypto and SystemDefaultTlsVersions.

HTH!

@muikka
Copy link

muikka commented Nov 4, 2018

you should set your framawork target to 4.7 and above.
it will work bcs of security features :)

@abhipadm
Copy link

abhipadm commented Nov 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants