[Dancer-users] dancer croaking with a strange error in config.yml
Puneet Kishor
punk.kish at gmail.com
Mon Nov 14 04:09:01 CET 2011
This is bizarre.
1 layout: "main"
2 charset: "UTF-8"
3 template: "tiny"
4
5 plugins:
6 Database:
7 driver: 'mysql'
8 database: '***********'
9 host: '127.0.0.1'
10 port: 3306
11 username: '***********'
12 password: '***********'
13 dbi_params:
14 RaiseError: 1
15 AutoCommit: 1
The above config file works just fine on my laptop, but fails on my server with the following message
$perl bin/app.pl
Use of uninitialized value in numeric gt (>) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 718, <$IN> line 1.
Use of uninitialized value in numeric gt (>) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 719, <$IN> line 1.
Use of uninitialized value in numeric gt (>) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 719, <$IN> line 1.
Use of uninitialized value in numeric ne (!=) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 721, <$IN> line 1.
Use of uninitialized value in subtraction (-) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 726, <$IN> line 1.
Use of uninitialized value in numeric eq (==) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 361, <$IN> line 1.
Use of uninitialized value in numeric eq (==) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 361, <$IN> line 1.
Use of uninitialized value in numeric eq (==) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 361, <$IN> line 1.
Use of uninitialized value in substitution (s///) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 331, <$IN> line 1.
Use of uninitialized value in substitution (s///) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 338, <$IN> line 1.
Use of uninitialized value in substitution (s///) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 342, <$IN> line 1.
Use of uninitialized value in substitution (s///) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 407, <$IN> line 1.
Use of uninitialized value in substitution (s///) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/Loader.pm line 407, <$IN> line 1.
Unable to parse the configuration file: /Users/punkish/Sites/app/config.yml: YAML Error: Invalid element in map
Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
Line: 9
Document: 1
at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML.pm line 36
at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Dancer/Config.pm line 204
Dancer::Config::load_settings_from_yaml('/Users/punkish/Sites/app/config.yml') called at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Dancer/Config.pm line 181
Dancer::Config::load('Dancer::Config') called at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Dancer.pm line 230
Dancer::import('Dancer') called at bin/app.pl line 2
main::BEGIN() called at bin/app.pl line 2
eval {...} called at bin/app.pl line 2
BEGIN failed--compilation aborted at bin/app.pl line 2.
Any idea what is going on? Nothing obvious jumps at me.
--
Puneet Kishor
More information about the Dancer-users
mailing list