System.Text.Json.JsonReaderException on Android when deserializing JobInfo #1624
|
Hi Team, I would be very grateful if anyone could help me with this issue or advise if I am doing something wrong. On Android, I receive the following error for a small number of users: As my Shiny Job carries out some JSON deserialisation, I initially thought it was my own code throwing this exception when deserialising some user data. After a new release, I see the issue persists. I will admit in the beginning, I was accidentally registering the job twice, once in MauiProgram, and again in a ViewModel. I implemented some clean-up code in the next release to cancel the job completely on launch (in a hope to delete the two registrations if they existed) and then register it again, but again, I am still seeing the exception persist. I haven't opened an issue as I can't replicate the exception therefore can't provide a sample. I appreciate anyone who has taken the time to read this. Many thanks, Melissa |
Replies: 2 comments 2 replies
|
What version of Shiny? Did you do an upgrade? What's the locale of the device? What's the make/model & android version of the device(s)? I need as much detail as possible. Please note that this forum is going offline and is being moved to the mauiverse.net discord as of this weekend. |
|
It looks like your jobinfo files are empty. I'm not sure what would cause that. You're going to get lots of events per user because the job will keep trying to be triggered. You can switch to v5 beta which doesn't use jobinfo any longer. |
It looks like your jobinfo files are empty. I'm not sure what would cause that. You're going to get lots of events per user because the job will keep trying to be triggered. You can switch to v5 beta which doesn't use jobinfo any longer.