Troubleshooting Ruby Applications


This article lists errors and solutions I’ve come across in my experience with Ruby applications.


Common Errors/Possible Solutions
Error Description Possible Cause Possible Solution "did not find expected key while parsing a block mapping at line …" You may have a syntax error in a config/yaml file Try testing your yaml file with Ruby for any syntax errors.
If there is no output, then the syntax is OK. If errors found, start troubleshooting at the line number reported by the error message:
ruby -e "require 'yaml'; YAML.load_file('/somepath/myconfigfile.yml')"

Bert Tejeda

Leave a Reply

Your email address will not be published. Required fields are marked *

Protected with IP Blacklist CloudIP Blacklist Cloud