-
Notifications
You must be signed in to change notification settings - Fork 41
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
Unknown integer coding error #221
Comments
As a workaround, I'm doing |
I got into the same issue again. This time I had: case class UserView(
// ...
roles: List[String]
) and users fetched from database had either Trying other collections like |
I wonder why /cc @cquiroz |
I don't have much to add to this. I've used boopickle a lot with property tests (which generates massive strings) and I've never seen it fail. If you could provide a reproduction, a failing test case, that would really help.
Encoders for other formats will serialise ints. Eg. string length and list length. |
Usually, I have seen these kind of errors, when the wrong codec is used for decoding in the frontend. Like, you might be returning an error message in the backend and the frontend wants to decode it as a success. Do you have more logs for these events? Or can you somehow reproduce it in a contained example? |
In one of the responses I return a raw token:
which for some reason, when deserializing on frontend, triggers this error:
DeserializerError(java.lang.IllegalArgumentException: Unknown integer coding)
Experimenting a little, I think this is because the string is so long. By trial and error I determined that a 127-characters long string is OK, anything larger triggers the error.
source
The text was updated successfully, but these errors were encountered: