[chef] Re: knife diff is failing with a lexical error


Chronological Thread 
  • From: Nathan Smith < >
  • To: " " < >
  • Subject: [chef] Re: knife diff is failing with a lexical error
  • Date: Fri, 12 Jul 2013 16:55:29 +0000
  • Accept-language: en-US

I've seen this error before on a chef client run, but have never been able to reproduce or find the root cause. There was an issue opened: http://tickets.opscode.com/browse/CHEF-4032

Sorry I don't have a fix, but you're not the first one to see that particular exception.

Nathan L Smith
(319) 339-0466


I just started trying to use knife diff, and it will (very) often fail with an error like the following.

 

ERROR: Yajl::ParseError: lexical error: invalid char in json text.

                                       # this is very hard coded for a

          (right here) ------^

 

It appears that something is trying to parse a ruby file as if were json.

 

It doesn’t happen for every ruby file.  I have started doing some specific test cases, and it seems to mostly occur with .rb files that I have created, but not all the ones that I have created.  I have also seen it happen on a few .erb files as well.

 

Has anyone else seen this, and, more importantly, is there a fix or work around?

 

 

--

Stephen Corbesero, PAC

Synchronoss Technologies, Inc., Bethlehem, PA, USA

 




Archive powered by MHonArc 2.6.16.

§