NoMethodError (undefined method `unpack1' for #<String:0x00560ba95dba00> Did you mean? unpack):

For Ruby Version 2.3.4 and rails 5.2 i getting this error. the solution i tried didnt work for me . Any suggestions?

String#unpack1 is not part of Ruby 2.3.4 API. It only has unpack.

String#unpack1 was added in Ruby 2.4. You can see that in that version’s NEWS file.

The error you’re facing is related to the unpack1 method. It’s not a valid method in Ruby 2.3.4. You might need to update your code or check for compatibility issues with your gems.