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

TypeError can't dump IO (TypeError) with rails 7 and attr_encrypted 4.0.0 #451

Open
thibaut-pro opened this issue Apr 16, 2024 · 1 comment

Comments

@thibaut-pro
Copy link

We hit this error after upgrading to rails 7 and attr_encrypted 4.0.0:

TypeError
can't dump IO (TypeError)

      value = options[:marshal] ? options[:marshaler].send(options[:dump_method], value) : value.to_s

It looks like the gem was no longer able to handle an encrypted json object in a payload. We fixed it by converting the payload to a hash.

@thibaut-pro
Copy link
Author

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

1 participant