rubyruby-on-rails-3amazon-s3spreerails-activestorage

Image Gets Uploaded While env is set to Amazon S3 but shows YAML error when env set to local


YAML syntax error occurred while parsing /app/config/storage.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (): did not find expected tag URI while parsing a tag at line 16 column 11

This is occurring while uploading images from Spree Commerce Admin Panel .


Solution

  • Solved !!!

    In Storage.yml write the local service: as a disk instead of a Disk.

    Also Add require 'yaml' in the environment.rb file

    Along With adding A YAML gem or upgrading to the latest YAML gem Version Available. Check Here