[Dancer-users] dancer croaking with a strange error in config.yml

David Precious davidp at preshweb.co.uk
Mon Nov 14 13:13:21 CET 2011

On Monday 14 November 2011 03:09:01 Puneet Kishor wrote:
> This is bizarre.

<snipped fine-looking config> 

>  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, 
> 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
>    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/Dance
> r/Config.pm line 204



Do you know what version of YAML.pm you have installed on your server?  If 
it's not the latest, could you try updating it, and see if the problem 

Can you see if you can parse the YAML directly, without Dancer's involvement?


  perl -MData::Dump=pp -MYAML -E 'say pp(YAML::LoadFile("config.yml"));'

David Precious  ("bigpresh")

   "Programming is like sex. One mistake and you have to support
   it for the rest of your life". (Michael Sinz)

More information about the Dancer-users mailing list