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

Cannot access a disposed object. Object name: 'Square.OkHttp3.OkHttpClient'. #77

Open
desaishrey90 opened this issue Jan 7, 2021 · 1 comment

Comments

@desaishrey90
Copy link

I am seeing the following exception occurring often in Android 9.0 devices. It was not occurring in v 3.4.2 of the package. There was an update made for OkHttp3 nuget package in v 3.4.3. Is that causing this?

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Square.OkHttp3.OkHttpClient'.
at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in :0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in :0
at Square.OkHttp3.OkHttpClient.CookieJar () [0x0000a] in <33fa226edb0e455ab4097ae9978172a6>:0
at ModernHttpClient.NativeMessageHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x001ad] in <1b85d0c61a414b069649f869d567f362>:0

@alexrainman
Copy link
Owner

Let me try to reproduce the issue.

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

No branches or pull requests

2 participants