-
Notifications
You must be signed in to change notification settings - Fork 42
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
Comments
The v1 branch have the synchronous code.
…On 12-Dec-2017 7:55 PM, "aztommylee" ***@***.***> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#43>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABXa_N60q6-qhAxv5mqW8oRcJsBPmBAxks5s_ozDgaJpZM4Q_DMu>
.
|
We seem to be experiencing a similar issue (same exception stack) but from PodioAPI.Podio.Authenticate |
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 |
For me, it was caused by Podio recently switching to TLS 1.1. ensure you
are using version 1.1 or higher.
…On Wed, 11 Jul 2018, 18:38 Régner Henrique, ***@***.***> wrote:
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
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADng6y5xQd3GCHPZayRxYYS8wgDN9v6Wks5uFjgTgaJpZM4Q_DMu>
.
|
Ohhh @clarkd you resolved the problem! Thanks very much, my friend. |
No problem, took me a while to figure out. The Podio exception is useless!
We recently had a similar issue with another API so I took a wild guess!
…On Wed, 11 Jul 2018, 18:58 Régner Henrique, ***@***.***> wrote:
Ohhh @clarkd <https://github.com/clarkd> you resolved the problem! Thanks
very much, my friend.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADng66NYfiHLqyqVxn9Kz3E7Q6K-q39Cks5uFjzhgaJpZM4Q_DMu>
.
|
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 Specifically we added the two registry entries mentioned in the second article, HTH! |
you should set your framawork target to 4.7 and above. |
Podio disabled the TLS 1.0 in July 2018. Please see the below thread: |
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.
The text was updated successfully, but these errors were encountered: