-
Notifications
You must be signed in to change notification settings - Fork 13
Crash: Invalid type in JSON write (_SwiftValue) #56
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
Comments
Hi @MathisDetourbet, many thanks for raising this issue. It seems that there is an error with the JSON serialization of the user object passed into |
Thanks for your reactive response. What is the best way to collect it? Since it happens to some users in production so I don't know how to reproduce the issue yet. |
The best way may be to 1. manually inspect the code that calls |
We've just encountered this as well. It's hitting end users but also a fraction of people using our internal TestFlight too, so hopefully soon we can make a build with debug logs turned on to see the difference in the user objects. Our stack trace looks very similar to that above and we're using version 1.15.0 of experiment-ios-client. |
We figured it out - there was an enum value in our new user info. We converted it to a string, and then everything was fine. |
I received some crashes for few users for 2 weeks now. The file where the crash occurs is:
ExperimentClient.swift
line482
Here is the stacktrace:
Do you have an idea why I get it?
The text was updated successfully, but these errors were encountered: