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

41 Views Asked by At

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 .

1

There are 1 best solutions below

0
Sumant On BEST ANSWER

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