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

Time:10-17

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 .

CodePudding user response:

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

  • Related