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

[BUG] Akavache using old System.Text.Json dependency. #680

Closed
huyvuskedulo opened this issue Jun 4, 2021 · 1 comment · Fixed by #682
Closed

[BUG] Akavache using old System.Text.Json dependency. #680

huyvuskedulo opened this issue Jun 4, 2021 · 1 comment · Fixed by #682
Labels

Comments

@huyvuskedulo
Copy link

Describe the bug
Alright, so the problem is I'm trying to implement Sentry.io package (Sentry.Xamarin.Forms) into my project.
It's fine if i tried to implement it in a blank Xamarin project. The problem is when i tried to install it with a project that also has "Akavache", it's unable to send the error because of this

Here is the issue i reported from Sentry, but it turn out it's might be a problem for Akavache:
getsentry/sentry-xamarin#72

And this is the repo that you can use (click on a cat to see the error logs from console)
https://github.com/unamed000/my-cat-demo/tree/sentry-error

Error: Failed to send cached envelope: System.MissingMethodException: Method not found: System.Text.Json.JsonDocument System.Text.Json.JsonDocument.Parse(System.ReadOnlyMemory`1<byte>,System.Text.Json.JsonDocumentOptions)
  at Sentry.Protocol.Envelopes.Envelope.DeserializeHeaderAsync (System.IO.Stream stream, System.Threading.CancellationToken cancellationToken) [0x001a1] in /_/src/Sentry/Envelopes/Envelope.cs:152 
  at Sentry.Protocol.Envelopes.Envelope.DeserializeAsync (System.IO.Stream stream, System.Threading.CancellationToken cancellationToken) [0x00032] in /_/src/Sentry/Envelopes/Envelope.cs:164 
  at Sentry.Internal.Http.CachingTransport.ProcessCacheAsync (System.Threading.CancellationToken cancellationToken) [0x00117] in /_/src/Sentry/Internal/Http/CachingTransport.cs:173 , discarding cached envelope.
2021-06-04 13:10:15.969986+0700 MyCats.iOS[24822:748467]   Debug: No cached file to process.

After i removed Akavache from my project (and Restore the package for the project) it's running fine again. So Akavache must be using some System.Text.Json in the old version which make the iOS project to run System.Text in that version instead of the latest version coming from Sentry.

Steps To Reproduce

  • Run the cats app
  • Click on a cat

Expected behavior
The logs should state that the message is successfully sent to Sentry.

But it was not

Screenshots

image

Environment

  • OS: iOS 14.5
  • Device: iPhone 11 14.5 Simulator
  • Version: akavache 7.2.1
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant