-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Undefined Conversion Error in copy_to_local_file #86
Comments
Hi @samsaradog The library is using aws s3 I wonder if the error is due to an older version of aws s3 library, please try upgrading that. |
@samsaradog were you able to solve the problem? |
Hi again - Sorry I missed your earlier response. I solved the problem by going back to paperclip, but have since started upgrading to Ruby 3.0.3, which is no longer compatible with paperclip. I am seeing the same error with aws-sdk 3.1 and kt-paperclip 6.4. Thanks again for your help! I promise I'll look back again for an answer or if you all need more information. |
@samsaradog Please try latest kt-paperclip 7.1.1 |
@ssinghi Thanks for the reply. I'm on 7.1.1 but sadly am getting the same error. I was doing: Thanks again for your help. |
In case this helps, here's what shows up in my Gemfile.lock:
I'm also on aws-sdk 3.1.0. Thanks again for all your help. |
Sorry for the churn, but it turns out my workaround above gets rid of the error, but corrupts the data it is copying. My latest workaround is to set up the encoding for the temp file as ascii-8bit: |
Hello @samsaradog, did you find any solution to the problem? |
Describe the bug
I'm getting an error when trying to copy a pdf file from a Paperclip::Attachment object (on S3) to a local tempfile.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This error does not show up with paperclip 6.1.0, but several other errors and warnings do show up, which is why I am grateful you have made this gem available.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I found a similar problem with the paperclip gem from several years ago. Their solution involved adding the activesupport-json_encoder gem which is no longer supported. I don't have that gem in my Gemfile, so I presume they fixed it by 6.1.0.
Thanks again for all your work on this. Please let me know if there's anything else I can do to help.
The text was updated successfully, but these errors were encountered: