You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because fileis nil. This is to be expected if the remote file doesn't exist, as per the Fog::AWS::Storage::Files#head method in fog-aws-3.7.0/lib/fog/aws/models/storage/files.rb:99
When
CarrierWave::Storage::Fog::File#read
is called on a file that doesn't exist (specifically on AWS S3 in this case), the following error is thrown:This occurs here -
carrierwave-2.1.0/lib/carrierwave/storage/fog.rb:298
This is because
file
is nil. This is to be expected if the remote file doesn't exist, as per theFog::AWS::Storage::Files#head
method infog-aws-3.7.0/lib/fog/aws/models/storage/files.rb:99
The
rescue
triggers if the remote file doesn't exist, which returnsnil
.The
CarrierWave::Storage::Fog::File#read
method should probably be:The text was updated successfully, but these errors were encountered: