I'm getting "found character that cannot start any token while scanning for the next token" I'm getting "found character that cannot start any token while scanning for the next token" ruby-on-rails ruby-on-rails

I'm getting "found character that cannot start any token while scanning for the next token"


YAML does not accept TAB characters (\t) for indentation. Look for those in your config/application.yml and replace with 2 spaces.

(or there may be other syntax errors, as suggested by Ryan. But I'm betting on this one)


This error is originating from the Figaro gem, which would indicate to me that you probably have a syntax error in config/application.yml. Double check this file for any incorrect YAML syntax.


May not be your specific example, but the title of the Stack Overflow resulted in me being on this post so for those working with this error, it may be due to:

en.yml or a translation yml or any yaml...

That doesn't have double quotes around a string interpolation

points:  other: %{points} points

Correction:

points:  other: "%{points} points"