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

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.

YAML exception: Invalid Yaml: while scanning for the next token found character '\t' that cannot start any token in reader

The error message "Invalid Yaml" helps here. By the looks of it you're missing a single colon after 02initdb

So the YAML should look like

container_commands:
01initdb:
command: "php artisan migrate"
02initdb:
command: "php artisan db:seed"

Hope that helps!

Syntax error in my yaml file in Rails for some reason

In YAML, % cannot start a plain scalar because it is an indicator (used for directives at the document header), see relevant part of the spec.

Your options are:

subject: "%{document_type} pendiente" # double-quoted
subject: '%{document_type} pendiente' # single-quoted
subject: >- # folded block scalar
%{document_type} pendiente
subject: |- # literal block scalar
%{document_type} pendiente

All of these options have the exactly same semantics. The block scalar types are good for long content or when you don't want to think about any problematic characters in your scalar (as double-quoted scalars process escape sequences and single-quoted scalars have ' as special character).

Ruby on Rails - Capistrano deploy error

After two days of trying to solve the error, I went back and redid the tutorial.
It was a problem with the indentation in one of the config files in the server!



Related Topics



Leave a reply



Submit