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

Term which starts with the following symbol is not supported: <<141>> #25

Open
bigardone opened this issue Apr 24, 2019 · 2 comments
Open

Comments

@bigardone
Copy link

Hi 👋!
I'm using ex_marshal along with memcachex to read from a Memcached cache, shared with a Rails application. In this cache, there are records that have a field with a long avatar url, and when that field value exceeds a certain length it throws the following error:

** (ExMarshal.Errors.DecodeError) term which starts with the following symbol is not supported: <<141>>
    (ex_marshal) lib/ex_marshal/decoder.ex:63: ExMarshal.Decoder.decode_element/2
    (ex_marshal) lib/ex_marshal/decoder.ex:10: ExMarshal.Decoder.decode/1

In these cases, if I update the record from Rails with a shorter value, it works perfectly fine. What might be happening? Could it be something related to #10?
Thank you very much in advance :)

@gaynetdinov
Copy link
Owner

Hi!
Could you please provide the example of such string?

@gaynetdinov
Copy link
Owner

I just tried to run this test https://github.com/gaynetdinov/ex_marshal/pull/10/files#diff-29addc157c949c7ec3c85fb7a0a6911fR41 but with the string 20x times longer and it worked.

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

No branches or pull requests

2 participants