You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented my own IAuthStore and after persisting it the Podio.OAuth doesn't get set to the new value.
I need to manually set it in the first place after construction, which is pretty silly, considering I pass the IAuthStore that holds PodioOAuth to the constructor:
Since the IAuthStore.Set is called somewhere in the Podio library when I make a call to Podio, I can't know when to manually reset the Podio.OAuth object besides having a singleton PodioAPI object and keeping the record of IPodioOAuth.Set calls and then re-do the request to Podio after it fails and I reset the new OAuth object, because it was still trying to use the old OAuth, which apparently gets disposed of. At least that's what I assume from the ObjectDisposedException I get.
If I understand it correctly the old OAuth object get the dispose() call, but the new one is not set in it's place.
The text was updated successfully, but these errors were encountered:
I think I was wrong on whats causing the issue. Most likely the task times out after refreshing the auth tokens. It takes about 2 minutes to throw the AggregateException that has TaskCancelled and ObjectDisposed exceptions.
If I repeat the request immediately after catching those it works fine. My current solution is to cancel that task after 10 seconds and run it again.
I implemented my own
IAuthStore
and after persisting it thePodio.OAuth
doesn't get set to the new value.I need to manually set it in the first place after construction, which is pretty silly, considering I pass the
IAuthStore
that holdsPodioOAuth
to the constructor:_podio = new PodioAPI.Podio(podioClientId, podioClientSecret, podioOAuth) { OAuth = podioOAuth.PodioOAuth };
Since the
IAuthStore.Set
is called somewhere in the Podio library when I make a call to Podio, I can't know when to manually reset thePodio.OAuth
object besides having a singletonPodioAPI
object and keeping the record ofIPodioOAuth.Set
calls and then re-do the request to Podio after it fails and I reset the newOAuth
object, because it was still trying to use the oldOAuth
, which apparently gets disposed of. At least that's what I assume from theObjectDisposedException
I get.If I understand it correctly the old
OAuth
object get thedispose()
call, but the new one is not set in it's place.The text was updated successfully, but these errors were encountered: